Update markdownlint-micromark dependency to 0.1.7, incorporate micromark-extension-math into parse (and compile for demo page).

This commit is contained in:
David Anson 2023-07-16 22:07:34 -07:00
parent de2922a8eb
commit 3945de161e
4 changed files with 15 additions and 6 deletions

View file

@ -44,7 +44,8 @@
"extensions": [
micromark.gfmAutolinkLiteral(),
micromark.gfmFootnote(),
micromark.gfmTable()
micromark.gfmTable(),
micromark.math()
]
};
const context = micromark.parse(parseOptions);
@ -55,7 +56,8 @@
"htmlExtensions": [
micromarkHtml.gfmAutolinkLiteralHtml(),
micromarkHtml.gfmFootnoteHtml(),
micromarkHtml.gfmTableHtml()
micromarkHtml.gfmTableHtml(),
micromarkHtml.mathHtml()
]
};
return micromarkHtml.compile(compileOptions)(events);