Work around problems related to markdown-it-texmath plugin's token.map not accounting for math_block_end.

This commit is contained in:
David Anson 2020-11-12 23:08:46 -08:00
parent a3f8fb7c62
commit 32db81b740
3 changed files with 90 additions and 0 deletions

View file

@ -1473,6 +1473,21 @@ $$\n`
});
});
tape("texmath-content-in-lists with texmath plugin", (test) => {
test.plan(2);
markdownlint({
"files": [ "./test/texmath-content-in-lists.md" ],
"markdownItPlugins": [ [ pluginTexMath, pluginTexMathOptions ] ]
}, function callback(err, actual) {
test.ifError(err);
const expected = {
"./test/texmath-content-in-lists.md": []
};
test.deepEqual(actual, expected, "Unexpected issues.");
test.end();
});
});
tape("getVersion", (test) => {
test.plan(1);
const actual = markdownlint.getVersion();