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

Pass every line to mathjax individually

parent 22c72c63
No related branches found
No related tags found
1 merge request!283Pass every line to mathjax individually
Pipeline #229805 passed
......@@ -18,12 +18,12 @@
id="sub-lines"
#table-content
>
<math-renderer :enabled="mathIsRendered">
<tr
v-for="(code, lineNo) in submission"
:id="`sub-line-${lineNo}`"
:key="`${submissionObj.pk}${lineNo}`"
>
<tr
v-for="(code, lineNo) in submission"
:id="`sub-line-${lineNo}`"
:key="`${submissionObj.pk}${lineNo}`"
>
<math-renderer :enabled="mathIsRendered">
<submission-line
:hint="hasHiddenComment(lineNo)"
:code="code"
......@@ -57,8 +57,8 @@
@collapseFeedbackForm="toggleEditorOnLine(lineNo)"
/>
</submission-line>
</tr>
</math-renderer>
</math-renderer>
</tr>
</template>
<template #labels>
<label-selector
......
......@@ -30,11 +30,11 @@
/>
</template>
<template #table-content>
<math-renderer :enabled="mathIsRendered">
<tr
v-for="(code, lineNo) in submissionText"
:key="lineNo"
>
<tr
v-for="(code, lineNo) in submissionText"
:key="lineNo"
>
<math-renderer :enabled="mathIsRendered">
<submission-line
:code="code"
:line-no="lineNo"
......@@ -52,8 +52,8 @@
</template>
</template>
</submission-line>
</tr>
</math-renderer>
</math-renderer>
</tr>
</template>
</base-annotated-submission>
<v-card>
......
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