Commit 6c02f07b authored by Daniel Gerhardt's avatar 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
......@@ -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";
});
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment