Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
ARSnova
ARSnova Mobile
Commits
6c02f07b
Commit
6c02f07b
authored
Apr 23, 2019
by
Daniel Gerhardt
Browse files
Merge branch 'fix-hlcode' into '2.7'
Fix rendering of code with <hlcode> See merge request
!86
parents
e3e52868
b16f202b
Pipeline
#25260
passed with stages
in 1 minute and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/app/view/MathJaxMarkDownPanel.js
View file @
6c02f07b
...
...
@@ -60,7 +60,7 @@ Ext.define('ARSnova.view.MathJaxMarkDownPanel', {
var
replaceCodeBlockFromContent
=
function
(
content
)
{
return
content
.
replace
(
/<hlcode>
([\s\S]
*
?)
<
\/
hlcode>/g
,
function
(
element
)
{
var
codeBlockMatch
=
element
.
match
(
/^<hlcode>
\s
*
([\s\S]
*
?)\s
*<
\/
hlcode>$/
)[
1
];
return
"
\n
```auto
\n
"
+
codeBlockMatch
+
"
```
\n
"
;
return
"
\n
```auto
\n
"
+
codeBlockMatch
+
"
\n
```
\n
"
;
});
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment