You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
replace markdown-it-katex with markdown-it-texmath, this makes using $ much better (#1116)
This commit is contained in:
committed by
Laurent Cozic
parent
ef56eb4a52
commit
46b82f877b
@ -467,9 +467,8 @@ class MdToHtml {
|
||||
// This is currently used only so that the $expression$ and $$\nexpression\n$$ blocks are translated
|
||||
// to math_inline and math_block blocks. These blocks are then processed directly with the Katex
|
||||
// library. It is better this way as then it is possible to conditionally load the CSS required by
|
||||
// Katex and use an up-to-date version of Katex (as of 2018, the plugin is still using 0.6, which is
|
||||
// buggy instead of 0.9).
|
||||
md.use(require('markdown-it-katex'));
|
||||
// Katex and handle rendering of katex ourselves (this one is prone to be buggy).
|
||||
md.use(require('markdown-it-texmath'));
|
||||
|
||||
// Hack to make checkboxes clickable. Ideally, checkboxes should be parsed properly in
|
||||
// renderTokens_(), but for now this hack works. Marking it with HORRIBLE_HACK so
|
||||
|
Reference in New Issue
Block a user