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

@ -4,7 +4,8 @@
// @ts-ignore
const {
gfmAutolinkLiteral, gfmFootnote, gfmTable, parse, postprocess, preprocess
gfmAutolinkLiteral, gfmFootnote, gfmTable, math, parse, postprocess,
preprocess
// @ts-ignore
} = require("markdownlint-micromark");
@ -33,7 +34,12 @@ function getMicromarkEvents(markdown, options = {}, refsDefined = true) {
// Customize options object to add useful extensions
options.extensions = options.extensions || [];
options.extensions.push(gfmAutolinkLiteral(), gfmFootnote(), gfmTable());
options.extensions.push(
gfmAutolinkLiteral(),
gfmFootnote(),
gfmTable(),
math()
);
// Use micromark to parse document into Events
const encoding = undefined;