Add id to decorateCooked API call for KaTeX as well
This commit is contained in:
parent
e509c6f6e4
commit
23ab984862
|
@ -42,9 +42,12 @@ function katex($elem) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function initializeMath(api) {
|
function initializeMath(api) {
|
||||||
api.decorateCooked(function(elem) {
|
api.decorateCooked(
|
||||||
katex(elem);
|
function(elem) {
|
||||||
});
|
katex(elem);
|
||||||
|
},
|
||||||
|
{ id: "katex" }
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue