Add missing parens to demo page script after recent updates to micromark extension exports.

This commit is contained in:
David Anson 2023-07-03 19:42:38 +00:00
parent 1a6af150d8
commit ddf5784289

View file

@ -42,9 +42,9 @@
} else if (renderer === "micromark") {
const parseOptions = {
"extensions": [
micromark.gfmAutolinkLiteral,
micromark.gfmAutolinkLiteral(),
micromark.gfmFootnote(),
micromark.gfmTable
micromark.gfmTable()
]
};
const context = micromark.parse(parseOptions);
@ -53,9 +53,9 @@
const compileOptions = {
"allowDangerousHtml": true,
"htmlExtensions": [
micromarkHtml.gfmAutolinkLiteralHtml,
micromarkHtml.gfmAutolinkLiteralHtml(),
micromarkHtml.gfmFootnoteHtml(),
micromarkHtml.gfmTableHtml
micromarkHtml.gfmTableHtml()
]
};
return micromarkHtml.compile(compileOptions)(events);