diff --git a/ts/output/chtml.ts b/ts/output/chtml.ts index 53c42901c..da7265909 100644 --- a/ts/output/chtml.ts +++ b/ts/output/chtml.ts @@ -140,6 +140,13 @@ CommonOutputJax, CHTMLWrapperFactory, CH this.font.adaptiveCSS(this.options.adaptiveCSS); } + /** + * @override + */ + public initialize() { + this.chtmlStyles = null; + } + /** * @override */ diff --git a/ts/output/svg.ts b/ts/output/svg.ts index d027d330c..e64c05a3e 100644 --- a/ts/output/svg.ts +++ b/ts/output/svg.ts @@ -135,8 +135,9 @@ CommonOutputJax, SVGWrapperFactory, SVGFon */ public initialize() { if (this.options.fontCache === 'global') { - this.fontCache.clearCache(); + this.clearFontCache(); } + this.svgStyles = null; } /**