flammy / imagebox

This dokuwiki plugin displays captions in a box drawn around an image.
https://www.dokuwiki.org/plugin:imagebox
GNU General Public License v2.0
5 stars 7 forks source link

Compatiblity with MathJax Plugin #120

Open brianedw opened 1 year ago

brianedw commented 1 year ago

I use DokuWiki as a Scientific Notebook and LaTeX is important to me. LaTeX is a tool for writing mathematics, often used by scientists, engineers, and others that use mathematics.

I'm finding that the inclusion of LaTeX inline notation breaks the rendering so that the image appears between two square brackets with no caption. I'm using the MathJaX plugin to get DokuWiki to render LaTeX. When I remove the LaTeX expressions, it renders fine.

As it's main parentheses, LaTeX uses the curly brackets, { }. For instance, 1/2 would be written as $\frac{1}{2}$. The issue appears to occur when the LaTeX expression includes a curly bracket.

[{{:playground:playground:pasted_2023_01_21_17_06_22.png| Consider the variable **U**.  This is DokuWiki bold is fine. }}]

[{{:playground:playground:pasted_2023_01_21_17_06_22.png| Consider the variable $U$.  This simple LaTeX is fine. }}]

[{{:playground:playground:pasted_2023_01_21_17_06_22.png| Consider the variable $\frac{U}{2}$.  This LaTeX fraction is not fine. }}]