Repository navigation
Conversation
|
Thanks! Would this also take care of this issue: #411? smartParens should be auto disabled inside equations so that |
|
of course. Since smartypants render only enabled when processing The following example rendered properly with this PR under default configuration (+MathJaX) |
|
@rtfb Can you please look at this PR? |
|
This would be a big improvement as you have to disable completely Blackfriday to prevent wrong interpretations in math environments. |
|
I would like to not merge any changes that significantly change the way a source document is interpreted until we have CommonMark support (meaning that we can exercise their very exhaustive set of test cases, in addition to ours). There is another very similar PR: #288. There's some extensive discussion on it about ideas how a math extension could be implemented without altering the semantics of a source Markdown document. The gist is that MathJaX support could be added completely outside of Blackfriday core, as a drop-in renderer that does two custom things:
Since the above seems to be a viable idea, I'm doubly reluctant to merge this functionality into Blackfriday core without seeing it tried out (or at least discussed in more detail if others don't see it as viable as I do). |
|
FYI: the simple It might be a good idea to stick to that somewhat established syntax. |
|
Really hope this change can be merged soon! |
Add Math support (MathJaX) to blackfriday.v2
$,$$now can be rendered properly. Compatible with many markdown editor._won't break subscript in LaTeX anymore.blackfriday.MathJaxSupport