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
When I check Marginalia's code, I can see that the following LaTeX code get properly parsed:
\\(a \ne 0\\)
Once parsed by Marginalia, it becomes \(a \ne 0\) and it get properly displayed by MathJax.
However, when I use the same LaTeX code in my own application, the double quotes remains the same in the output HTML (\\(a \ne 0\\)), and so it doesn't get parsed by MathJax because it was expecting single quotes.
I am using version 0.8.0
The text was updated successfully, but these errors were encountered:
I think this should be updated in the documentation.
However, for my project, even with this fix, it was not working. I found two things:
I had to escape any MD characters. So, this LaTex: \(C_{1},...,C_{j}\) needs to be written \\\\(C\\_{1},...,C\\_{j}\\\\). This was not necessary for the test I made for Marginalia
The other weird thing is that even with that fix, the docstring appears in the code section of the documentation. Normally the docstring is removed, but it in the code output when MathJax code is in the docstring.
It is really not clear why this is happening in my project. I tried to figure out what may be causing this, but the only thing I can see is com.petebevin.markdown.MarkdownProcessor otherwise I can't see where some text processing of the docstring may occurs. Any pointers?
The issue is that the docstrings and the "outside" comments are handled differently. I just noticed that the code example from the project are not in docstrings.
If I move my LaTex code outside of the docstring (as normal comment before the function) then it works as expected.
When I check Marginalia's code, I can see that the following LaTeX code get properly parsed:
Once parsed by Marginalia, it becomes
\(a \ne 0\)
and it get properly displayed by MathJax.However, when I use the same LaTeX code in my own application, the double quotes remains the same in the output HTML (
\\(a \ne 0\\)
), and so it doesn't get parsed by MathJax because it was expecting single quotes.I am using version 0.8.0
The text was updated successfully, but these errors were encountered: