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