mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-16 02:55:50 +00:00
Remove usage of mw-code-inline
Remove usage of mw-code-inline:
* That class ended up not being merged into core, so it does nothing.
Only mw-code (for the <pre> wrap) is needed.
7c9b2273c9cbdae90c9f4e3890a13619f769c5d0 (mediawiki/core) had both
in an earlier patch version, but only mw-code was merged.
Follows-up:
* mediawiki/extensions/SyntaxHighlight_GeSHi:
dc147a5ef1
Use .mw-code and .mw-code-inline
* mediawiki/core
7c9b2273c9cbdae90c9f4e3890a13619f769c5d0
Add .mw-code styles in core
Change-Id: I793c05c3e103209cf966d9e35ab37c05528cdbb8
This commit is contained in:
parent
478202f1a4
commit
b06fbd3b60
|
@ -116,7 +116,7 @@ class SyntaxHighlight_GeSHi {
|
||||||
unset( $attribs['lang'] );
|
unset( $attribs['lang'] );
|
||||||
|
|
||||||
if ( $enclose === GESHI_HEADER_NONE ) {
|
if ( $enclose === GESHI_HEADER_NONE ) {
|
||||||
$attribs = self::addAttribute( $attribs, 'class', 'mw-geshi mw-code-inline ' . $lang . ' source-' . $lang );
|
$attribs = self::addAttribute( $attribs, 'class', 'mw-geshi ' . $lang . ' source-' . $lang );
|
||||||
} else {
|
} else {
|
||||||
// Default dir="ltr" (but allow dir="rtl", although unsure if needed)
|
// Default dir="ltr" (but allow dir="rtl", although unsure if needed)
|
||||||
$attribs['dir'] = isset( $attribs['dir'] ) && $attribs['dir'] === 'rtl' ? 'rtl' : 'ltr';
|
$attribs['dir'] = isset( $attribs['dir'] ) && $attribs['dir'] === 'rtl' ? 'rtl' : 'ltr';
|
||||||
|
|
Loading…
Reference in a new issue