diff --git a/frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue b/frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue index 5865a5b0655b7532c77dd685c2f51a069d7fc247..5e2581c417b0ec04a0e53f9ede9affc022658db6 100644 --- a/frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue +++ b/frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue @@ -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 () {