Add id to decorateCooked API call for KaTeX as well

This commit is contained in:
Penar Musaraj 2019-06-20 15:47:00 -04:00
parent e509c6f6e4
commit 23ab984862
1 changed files with 6 additions and 3 deletions

View File

@ -42,9 +42,12 @@ function katex($elem) {
}
function initializeMath(api) {
api.decorateCooked(function(elem) {
katex(elem);
});
api.decorateCooked(
function(elem) {
katex(elem);
},
{ id: "katex" }
);
}
export default {