-
Notifications
You must be signed in to change notification settings - Fork 11.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline mathjax in image caption renders as display #2601
Comments
@TomClabault From the mathjax documentation :
The |
The issue you're encountering happens because Here’s how to fix it: <div class="caption">
Inline $Mathjax$ isn't inline.
</div> 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: MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\\[', '\\]']]
}
}; This config ensures that #hacktoberfest |
Looks good and simple, waiting on #2795 to try this out! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
That did the trick, thanks! |
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: