Skip to content
Snippets Groups Projects
Commit 9c9a32d1 authored by Thilo Wischmeyer's avatar Thilo Wischmeyer Committed by Thilo Wischmeyer
Browse files

Renamed renderAsciiMath to renderMath

We also support Tex.
parent fbba89d5
No related branches found
No related tags found
1 merge request!278Rewrote math rendering logic
......@@ -201,7 +201,7 @@ export default {
immediate: true,
handler(newValue) {
if (newValue)
this.renderAsciiMath()
this.renderMath()
else
this.resetSubmission()
}
......@@ -211,13 +211,13 @@ export default {
subNotesEventBus.$on('submissionChanged', () => {
if (this.mathIsRendered) {
this.$nextTick(() => {
this.renderAsciiMath()
this.renderMath()
})
}
})
},
methods: {
renderAsciiMath () {
renderMath () {
window.MathJax.typeset()
},
resetSubmission () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment