enable markdown-it-checkbox

Sun, 06 Sep 2020 22:29:08 +0300

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 06 Sep 2020 22:29:08 +0300
changeset 36
6e3c3dd86b2f
parent 35
2f927eae429b
child 37
d63f9862304a

enable markdown-it-checkbox

markdown_it.js file | annotate | diff | comparison | revisions
package.json file | annotate | diff | comparison | revisions
--- a/markdown_it.js	Sun Sep 06 22:12:52 2020 +0300
+++ b/markdown_it.js	Sun Sep 06 22:29:08 2020 +0300
@@ -65,7 +65,8 @@
         var mk = require('@neilsustc/markdown-it-katex');
         var mm = require('markdown-it-mark');
         var mr = require('markdown-it-replace-link');
-        md.use(mk, katexOptions).use(mm).use(mr);
+        var mc = require('markdown-it-checkbox');
+        md.use(mk, katexOptions).use(mm).use(mr).use(mc);
         output = md.render(input);
     } catch(e) {
         console.error(e.stack || e.message || String(e));
--- a/package.json	Sun Sep 06 22:12:52 2020 +0300
+++ b/package.json	Sun Sep 06 22:29:08 2020 +0300
@@ -14,6 +14,7 @@
     "@neilsustc/markdown-it-katex": "^0.5.0",
     "highlight.js": "^10.1.1",
     "markdown-it": "^11.0.0",
+    "markdown-it-checkbox": "^1.1.0",
     "markdown-it-mark": "^3.0.0",
     "markdown-it-replace-link": "^1.1.0"
   },

mercurial