-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Code snippet interferes with latex expressions #340
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks like this is a bug in markdown2, the markdown parser we use: >>> import markdown2
>>> markdown2.markdown('$n \\leq 0$.\n`l` is interfering.')
'<p>$n leq 0$.\n<code>l</code> is interfering.</p>\n'
>>> markdown2.markdown('$n \\leq 0$.\n`xl` is interfering.')
'<p>$n \\leq 0$.\n<code>xl</code> is interfering.</p>\n' |
Thanks. I'll open an issue upstream. |
pdoc includes a vendored copy at |
This is tracked at trentm/python-markdown2#412. The arguably annoying workaround is to not have code tags that are just a single character and maybe use |
Thanks for fixing this, @Crozzers! 🍰 |
No problem! Just happy that the fixes for #344 made it in as well. |
To reproduce bug, create docstring:
Result:
It appears that processing
l
somehow eats escape characters in\\leq
as one possible workaround is to write\\\\leq
If
l
is changed to something different, equation is rendered properly:Similarly:
The text was updated successfully, but these errors were encountered: