From 9c9a32d165c9fe46818ed52dd4e4db5da0d55233 Mon Sep 17 00:00:00 2001 From: Thilo Wischmeyer <thwischm@gmail.com> Date: Mon, 7 Jun 2021 13:53:08 +0200 Subject: [PATCH] Renamed renderAsciiMath to renderMath We also support Tex. --- .../toolbars/AnnotatedSubmissionTopToolbar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue b/frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue index 5865a5b0..5e2581c4 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 () { -- GitLab