Skip to content

Commit

Permalink
Merge pull request #711 from mathjax/revert-693-issue2678
Browse files Browse the repository at this point in the history
Revert "Clear the stylesheet when used in a new MathDocument.  (mathjax/MathJax#2678)"
  • Loading branch information
dpvc authored May 24, 2021
2 parents e5844ea + 08f0596 commit 22a626b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions ts/output/chtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,6 @@ CommonOutputJax<N, T, D, CHTMLWrapper<N, T, D>, CHTMLWrapperFactory<N, T, D>, CH
this.font.adaptiveCSS(this.options.adaptiveCSS);
}

/**
* @override
*/
public initialize() {
this.chtmlStyles = null;
}

/**
* @override
*/
Expand Down
3 changes: 1 addition & 2 deletions ts/output/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ CommonOutputJax<N, T, D, SVGWrapper<N, T, D>, SVGWrapperFactory<N, T, D>, SVGFon
*/
public initialize() {
if (this.options.fontCache === 'global') {
this.clearFontCache();
this.fontCache.clearCache();
}
this.svgStyles = null;
}

/**
Expand Down

0 comments on commit 22a626b

Please sign in to comment.