-
Notifications
You must be signed in to change notification settings - Fork 42
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
Strange math rendering issue #9
Comments
Hi. I'm pretty sure it has to do with custom headers syntax that can optionnaly be added on top of each markdown documents. They are delimited by https://github.com/lmtm/prez#customize-slide-attributes I'll make a conf option to specify these delimiters soon. |
Based on that info, I did a test, and it looks like the use of two underscores in the equation is causing the expression to get interpreted as not an equation. My regex knowledge is not great, but I couldn't quite figure out how line 46 in the slide-properties.js would match the particular equation that I had, since there was no : character in it, and I have a zero in it as well as some slashes and brackets that look to me like they won't match the regex pattern. Is there any other place in the code where using two underscores would be recognized as a type of delimiter? (I wouldn't be surprised if that's the wrong question to ask, but I'd hate to have you make a conf option if it's not needed.) |
You're right. After a bit of investigation, $ symbols are not guilty but the underscores are. |
Since that is the case, then I should be able to escape the underscores in the equations and have it rendered as a correct equation. I tried it for my case, and it seemed to work properly. I'm not sure what other cases may or may not be rendered correctly, but I seem to have a better work around for now. Thanks. |
BTW, to show math, I do so:
and then
In |
I ran into a strange math rendering issue today which I believe I can only connect to prez.
I had the following equation I was trying to display:
Testing with just MathJax and with just reveal.js, this renders correctly. Prez will not correctly render. It seems that the underscore after \limits is causing it to fail.
As a temporary fix, I can include the expression as an graphic, but I'm puzzled why this happens in prez.
The text was updated successfully, but these errors were encountered: