summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docutils/docutils/utils/math/latex2mathml.py6
-rw-r--r--docutils/test/functional/expected/math_output_mathml.html6
2 files changed, 6 insertions, 6 deletions
diff --git a/docutils/docutils/utils/math/latex2mathml.py b/docutils/docutils/utils/math/latex2mathml.py
index 3652a1fbf..9e27c0dfb 100644
--- a/docutils/docutils/utils/math/latex2mathml.py
+++ b/docutils/docutils/utils/math/latex2mathml.py
@@ -689,9 +689,9 @@ def handle_keyword(name, node, string):
elif name == 'colon': # "normal" colon, not binary operator
node = node.append(mo(':')) # TODO: add ``lspace="0pt"``
elif name in Greek: # Greek capitals (upright in "TeX style")
- node = node.append(mo(Greek[name]))
- # TODO: "ISO style" sets them italic. Could we use a class argument
- # to enable styling via CSS?
+ node = node.append(mi(Greek[name], mathvariant='normal'))
+ # TODO: "ISO style" sets them italic. Could we use a class argument?
+ # Unfortunately CSS styling does not change the font style in Firefox 78
elif name in letters:
node = node.append(mi(letters[name]))
elif name in special:
diff --git a/docutils/test/functional/expected/math_output_mathml.html b/docutils/test/functional/expected/math_output_mathml.html
index 0d292669e..41d8aeb96 100644
--- a/docutils/test/functional/expected/math_output_mathml.html
+++ b/docutils/test/functional/expected/math_output_mathml.html
@@ -217,14 +217,14 @@ directives:</p>
<mo>∂</mo><mi>t</mi>
</mrow>
</mfrac>
- <mo>Ψ</mo><mo>=</mo>
+ <mi mathvariant="normal">Ψ</mi><mo>=</mo>
<mover>
<mrow>
<mi>H</mi>
</mrow>
<mo>^</mo>
</mover>
- <mo>Ψ</mo><mo>,</mo>
+ <mi mathvariant="normal">Ψ</mi><mo>,</mo>
</mtd>
</mtr>
</mtable>
@@ -232,7 +232,7 @@ directives:</p>
</div>
<p>with the <em>wave function</em> <math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
- <mo>Ψ</mo>
+ <mi mathvariant="normal">Ψ</mi>
</mrow>
</math>, describes how the quantum state of a
physical system changes in time.</p>