Best way to handle math ($ or $$) in markup
See original GitHub issueWhat is the best way to handle embedded LaTex math code, such as can be displayed by GitHub.
Usually Mistune just passes the $ and $$ through as text, but sometimes it does not. Particularly, an expression such as:
$ \tilde{C}_t = \tanh(W_C \cdot [\hat{y}_{t-1},x_t]+b_C) $
Comes in from Mistune as:
Text: $ \tilde{C}
Emphasis: t = \tanh(W_C \cdot [\hat{y}
Text: {t-1},x_t]+b_C) $
Which makes sense, since Mistune is unaware of the $ escaped text, but it corrupts the math code, since the _'s do not indicate emphasis.
Also, are their any plans of supporting math encoding in the future?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Math Markup Language (Chapter 4)
The most fundamental way of building up a mathematical expression in MathML content markup is the apply construct. An apply element typically applies...
Read more >Markup or Margin . . . Which is Better?
Calculate your corrent markup; the one that provides the sales price that covers your job costs, overhead expenses, and makes a reasonable net...
Read more >Markups & Markdowns - YouTube
Watch his video for help solving problems using " markup " and "markdown" ... Engage NY // Eureka Math Grade 5 Module 3...
Read more >Markups and Markdowns - YouTube
Learn how to calculate markups and markdowns.Example problem: Shorts are on an end-of-the-season sale for 40% off. What is the sale price of ......
Read more >Solving Markup and Markdown Problems with Percents
In this lesson, practice using percents to solve markdown and markup problems. Practice writing and solving equations, given real world ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jeffheaton check
v3
branch, mistune v3 has built-in math plugin.@jeffheaton I’ve just released v3.0.0rc1, it is quite stable now. I’m using v3 in production in Typlog.
The documentation is here: https://mistune.lepture.com/en/latest/plugins.html