:math: produces large parentheses which seem to disrupt text layout more than necessary while .. math:: produces small parentheses which affect the math rendering without any apparent need. The behaviour of large vs. small parentheses should be reversed.
I'm not sure how far the presentation is specified, but the behaviour is consistently observed in Firefox and WebkitGtk, I therefore think docutils could reverse the style, unless there is an inherent disagreement between other browsers.
Last edit: ManDay 2020-10-13
I can reproduce with Firefox and WebKitGtk.
The QT WebKit browser Falkon and Chromium do not support MathML and both show all parentheses in equal size.
MathJax for MathML shows large parentheses in inline and block maths.
We do not explicitely apply any styles. A fix may require a change to the wrapper elements for inline vs. block-level math output.
Last edit: Günter Milde 2021-03-29
I found the problem: display formulas are wrapped in
<mtable>, which leads to the single rows beeing displayed compact. Changing this requires more test and adjustments - it is not clear whether this is worth the effort or rather Docutils should use an external converter likehttps://github.com/roniemartinez/latex2mathml. (Some external converters are already supported, see https://docutils.sourceforge.io/docs/user/config.html#math-output.
The attached patch adds rendering hints, that may help in Firefox versions > 83
(https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mrow,
https://developer.mozilla.org/en-US/docs/Web/MathML/Element/math).
Last edit: Günter Milde 2021-04-19
A fix is ready as part of a major "latex2mathml" rework in a local feature branch.
It will have to wait for 0.18b.dev, though.
Fixed as part of a major refactoring and extension [r8757].
Related
Commit: [r8757]
Fixed in Docutils 0.18. Thanks again for the report.