Skip to content
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

Allow tex parsing in <code> tags #1205

Merged
merged 1 commit into from
Jul 7, 2015
Merged

Allow tex parsing in <code> tags #1205

merged 1 commit into from
Jul 7, 2015

Conversation

gothma
Copy link

@gothma gothma commented Apr 16, 2015

This adresses #702.

Before: $\sum_{m} \sum_{d}$
screen shot 2015-04-16 at 13 38 26

After: $\sum_{m} \sum_{d}$
screen shot 2015-04-16 at 13 38 46

Just using $ as delimiter in markdown document fails since the markdown
parser unknown to the dollar syntax will try to interpret underscores.
Putting the $ delimented formula in backticks will cause the markdown
parser to put the tex-code with the $ delimiters into a code block.
The texcode will then be unchanged. This patch allows for mathJax to
interpret and automagically display all tex-formulas.

Just using $ as delimiter in markdown document fails since the markdown
parser unknown to the dollar syntax will try to interpret underscores.
Putting the $ delimented formula in backticks will cause the markdown
parser to put the tex-code with the $ delimiters into a code block.
The texcode will then be unchanged. This patch allows for mathJax to
interpret and automagically display the tex-formulas.
hakimel added a commit that referenced this pull request Jul 7, 2015
Allow tex parsing in <code> tags
@hakimel hakimel merged commit 852fea4 into hakimel:dev Jul 7, 2015
@hakimel
Copy link
Owner

hakimel commented Jul 7, 2015

Great. Thanks!

@zoof
Copy link

zoof commented Jul 27, 2015

Not sure why but this fix is not working for me, even with the example from #702 (http://pastebin.com/zqSm4d4h) or the above example: $\sum_{m} \sum_{d}$.

@gothma
Copy link
Author

gothma commented Jul 27, 2015

Have you enclosed the formula with backticks? (Notice the difference between before and after)

@zoof
Copy link

zoof commented Jul 27, 2015

Ah! The backticks looked like a typo which I promptly ignored....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants