Reimplement MD037/no-space-in-emphasis using micromark tokens, report start/end separately for smaller edit spans, remove markdown-it-texmath (fixes #533, fixes #597).

This commit is contained in:
David Anson 2023-07-24 21:36:55 -07:00
parent e86fb7699d
commit 73b9704159
20 changed files with 1784 additions and 2502 deletions

View file

@ -60,7 +60,11 @@
micromarkHtml.mathHtml()
]
};
return micromarkHtml.compile(compileOptions)(events);
try {
return micromarkHtml.compile(compileOptions)(events);
} catch (error) {
return `[Exception: "${error}"]`;
}
}
return `[Unsupported renderer "${renderer}"]`;
}