You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected result:
Should render all 4 words on the same line
Result observed:
Note that this isn't really only related to image captions. Having the Mathjax code in a simple <div> with no class renders the same (although not centered within the page).
The text was updated successfully, but these errors were encountered:
The default math delimiters are $$...$$ and \[...\] for displayed mathematics, and \(...\) for in-line mathematics. Note in particular that the $...$ in-line delimiters are not used by default. That is because dollar signs appear too often in non-mathematical settings, which could cause some text to be treated as mathematics unexpectedly.
The $$...$$ should be used for displayed mathematics, which are on separate lines. You should be able to use $...$ or \(...\) for the in-line mathematics. Can you try these instead?
The issue you're encountering happens because $$ in MathJax is used for display math, not inline math. To render inline math in MathJax, you should use single dollar signs $...$ instead of double dollar signs $$...$$.
If you want to configure MathJax to recognize $$ for inline math as well, you'll need to adjust the MathJax configuration. Add the following configuration in your MathJax setup:
Have you checked that your issue isn't already filed?
Bug description
Inline mathjax in image caption renders as display
How to reproduce the bug
Error messages and logs
No response
What operating system are you using?
Windows
Where are you seeing the problem on?
Running locally with Docker
More info
Expected result:
Should render all 4 words on the same line
Result observed:
Note that this isn't really only related to image captions. Having the Mathjax code in a simple
<div>
with no class renders the same (although not centered within the page).The text was updated successfully, but these errors were encountered: