Skip to content
Snippets Groups Projects
Commit cdb9d3f0 authored by Dominik Seeger's avatar Dominik Seeger :ghost:
Browse files

fixed rendering and comment issues

The rendering issue where angular brackets would mess up the HTML has
been fixed. Also, it is now possible to write multi-line comments again.
parent 3f4e0ac7
No related branches found
No related tags found
1 merge request!213Resolve "Incorrect displaying of lines with angle brackets"
Pipeline #117216 failed
......@@ -44,9 +44,7 @@
<span>Won't be visible to student</span>
</v-tooltip>
</div>
<div class="message">
{{ text }}
</div>
<pre><div class="message">{{ text }}</div></pre>
<v-btn
v-if="deletable"
flat
......
......@@ -75,6 +75,8 @@ const submissionGetter = mb.read(function submission(state, getters) {
let highlighted = state.submission.text || ''
if (language !== SubmissionType.ProgrammingLanguageEnum.Markdown) {
highlighted = hljs.highlight(language, highlighted, true).value
} else if (language === SubmissionType.ProgrammingLanguageEnum.Markdown) {
highlighted = hljs.highlight('plaintext', highlighted, true).value
}
// const highlighted = state.submission.text || ''
const postProcessed = syntaxPostProcess(highlighted)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment