Skip to content

Commit 33eb7a6

Browse files
committed
latex.vue updates for pyramation/LaTeX2JS#3
1 parent 0df9fb3 commit 33eb7a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/latex2vue/src/latex.vue

+7-1
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,18 @@ export default {
4444
}
4545
4646
if (getMathJax()) {
47+
this.loaded = true;
4748
return;
4849
}
4950
loadMathJax(() => {
5051
this.loaded = true;
5152
});
5253
},
54+
mounted(){
55+
let MathJax = getMathJax();
56+
if (MathJax != undefined)
57+
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
58+
},
5359
data() {
5460
return {
5561
usemacros: false,
@@ -64,4 +70,4 @@ export default {
6470
},
6571
},
6672
};
67-
</script>
73+
</script>

0 commit comments

Comments
 (0)