Skip to content
Snippets Groups Projects
Unverified Commit 48f09547 authored by edx-pipeline-bot's avatar edx-pipeline-bot Committed by GitHub
Browse files

Merge pull request #28371 from edx/private_to_public_b3bbda0

Mergeback PR from private to public.
parents 0dd00460 b3bbda06
No related branches found
Tags release-2021-08-02-19.11
No related merge requests found
......@@ -370,7 +370,8 @@
var RE_DISPLAYMATH = /^([^\$]*?)\$\$([^\$]*?)\$\$(.*)$/m,
RE_INLINEMATH = /^([^\$]*?)\$([^\$]+?)\$(.*)$/m,
ESCAPED_DOLLAR = '@@ESCAPED_D@@',
ESCAPED_BACKSLASH = '@@ESCAPED_B@@';
ESCAPED_BACKSLASH = '@@ESCAPED_B@@',
LATEX_SCRIPT = '\{javascript\:(.+?)\}';
/**
* Formats math and code chunks
......@@ -417,6 +418,7 @@
return processor(('\\begin{' + $1 + '}') + $2 + ('\\end{' + $1 + '}'));
});
htmlString = htmlString.replace(new RegExp(ESCAPED_BACKSLASH, 'g'), '\\\\\\\\');
htmlString = htmlString.replace(new RegExp(LATEX_SCRIPT, 'g'), '{}');
$div = edx.HtmlUtils.setHtml($('<div>'), edx.HtmlUtils.HTML(htmlString));
$div.find('code').each(function(index, code) {
edx.HtmlUtils.setHtml(
......
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