mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-24 01:40:13 +01:00
Update markdownlint-micromark dependency to 0.1.7, incorporate micromark-extension-math into parse (and compile for demo page).
This commit is contained in:
parent
de2922a8eb
commit
3945de161e
4 changed files with 15 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue