mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
Merge "Revert "Add class mwe-math-element
to math elements""
This commit is contained in:
commit
7b3494ede4
|
@ -418,7 +418,6 @@ class MathMathML extends MathRenderer {
|
|||
* @return string the class name
|
||||
*/
|
||||
private function getClassName( $fallback = false ) {
|
||||
global $wgMathElementClassName;
|
||||
$class = 'mwe-math-';
|
||||
if ( $fallback ) {
|
||||
$class .= 'fallback-image-';
|
||||
|
@ -435,7 +434,7 @@ class MathMathML extends MathRenderer {
|
|||
$class .= ' mwe-math-mathml-a11y';
|
||||
// @codingStandardsIgnoreEnd
|
||||
}
|
||||
return $class . " $wgMathElementClassName";
|
||||
return $class;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,13 +35,11 @@ class MathSource extends MathRenderer {
|
|||
function getHtmlOutput() {
|
||||
# No need to render or parse anything more!
|
||||
# New lines are replaced with spaces, which avoids confusing our parser (bugs 23190, 22818)
|
||||
global $wgMathElementClassName;
|
||||
if ( $this->getMathStyle() == 'display' ) {
|
||||
$class = 'mwe-math-fallback-source-display';
|
||||
} else {
|
||||
$class = 'mwe-math-fallback-source-inline';
|
||||
}
|
||||
$class .= " $wgMathElementClassName";
|
||||
return Xml::element( 'span',
|
||||
$this->getAttributes(
|
||||
'span',
|
||||
|
|
|
@ -137,7 +137,6 @@ class MathTexvc extends MathRenderer {
|
|||
* @return string img HTML
|
||||
*/
|
||||
public function getMathImageHTML() {
|
||||
global $wgMathElementClassName;
|
||||
$url = $this->getMathImageUrl();
|
||||
$attributes = [
|
||||
// the former class name was 'tex'
|
||||
|
@ -149,7 +148,6 @@ class MathTexvc extends MathRenderer {
|
|||
// if DisplayStyle is true, the equation will be centered in a new line
|
||||
$attributes[ 'class' ] = 'mwe-math-fallback-image-display tex';
|
||||
}
|
||||
$attributes[ 'class' ] .= " $wgMathElementClassName";
|
||||
return Xml::element( 'img',
|
||||
$this->getAttributes(
|
||||
'img',
|
||||
|
|
|
@ -115,8 +115,7 @@
|
|||
],
|
||||
"MathEnableWikibaseDataType": true,
|
||||
"Texvc": false,
|
||||
"TexvcBackgroundColor": "transparent",
|
||||
"MathElementClassName": "mw-math-element"
|
||||
"TexvcBackgroundColor": "transparent"
|
||||
},
|
||||
"VisualEditorPluginModules": [
|
||||
"ext.math.visualEditor"
|
||||
|
|
|
@ -57,7 +57,3 @@ generated by Mathoid. See https://gerrit.wikimedia.org/r/#/c/166213/ */
|
|||
img.tex {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.mwe-math-element {
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue