Enable math in markdown preview

Fixes #124783
This commit is contained in:
Matt Bierner
2021-06-08 09:58:42 -07:00
parent c2602f29d0
commit 0a57fd87b1
17 changed files with 163 additions and 53 deletions

View File

@@ -67,6 +67,7 @@ interface RenderEnv {
}
export class MarkdownEngine {
private md?: Promise<MarkdownIt>;
private _slugCount = new Map<string, number>();
@@ -129,6 +130,10 @@ export class MarkdownEngine {
return md;
}
public reloadPlugins() {
this.md = undefined;
}
private tokenizeDocument(
document: SkinnyTextDocument,
config: MarkdownItConfig,