MathJax exceeds container width without wrapping in Obsidian
Issue Summary
MathJax exceeds container width without wrapping in Obsidian.
Steps to Reproduce:
- Create MathJax embed in Obsidian
- Write on a single line until it visually exceeds container width.
Technical details:
- MathJax Version: 3.2
- Client OS: macOS Ventura 13.2.1
- Browser: Obsidian
Supporting information:
I believe this is a MathJax thing: https://docs.mathjax.org/en/latest/output/linebreaks.html
Automatic line breaking has not yet been implemented in MathJax version 3, but is high on our list for inclusion in a future release.
MathJax isn't great and lack features, which is why I made this plugin to begin with; but I certainly did not expect it to not even have any kind of automatic line breaking.
There might be some workaround by manipulating the CSS, but I have not looked into it yet. I will let you know if I do find one.
Originally posted by @SamZhang02 in https://github.com/SamZhang02/obsidian-latex-algorithms/issues/1#issuecomment-1467852283
To render math from LaTeX notation Obsidian uses MathJax. https://help.obsidian.md/How+to/Format+your+notes#Math