Attempt markdown-it-texmath instead of markdown-it-katex. draft

Mon, 06 Jul 2020 12:51:11 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 06 Jul 2020 12:51:11 -0500
changeset 27
8f40424fb02e
parent 26
77cd7b8fb6a6

Attempt markdown-it-texmath instead of markdown-it-katex.

markdown_it.js file | annotate | diff | comparison | revisions
package.json file | annotate | diff | comparison | revisions
--- a/markdown_it.js	Mon Jul 06 12:35:38 2020 -0500
+++ b/markdown_it.js	Mon Jul 06 12:51:11 2020 -0500
@@ -33,7 +33,10 @@
                     return '';
                 }
             }),
-            mk = require('markdown-it-katex'),
+            mk = require('markdown-it-texmath', {
+                engine: require('katex'),
+                delimiters:'dollars'
+            }),
             mm = require('markdown-it-mark');
         md.use(mk).use(mm);
         output = md.render(input);
--- a/package.json	Mon Jul 06 12:35:38 2020 -0500
+++ b/package.json	Mon Jul 06 12:51:11 2020 -0500
@@ -12,9 +12,10 @@
   },
   "dependencies": {
     "highlight.js": "^10.1.1",
+    "katex": "^0.11.1",
     "markdown-it": "^11.0.0",
-    "markdown-it-katex": "^2.0.3",
-    "markdown-it-mark": "^3.0.0"
+    "markdown-it-mark": "^3.0.0",
+    "markdown-it-texmath": "^0.7.2"
   },
   "devDependencies": {},
   "scripts": {

mercurial