diff options
-rw-r--r-- | app/assets/javascripts/notebook/cells/markdown.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/notebook/cells/markdown.vue b/app/assets/javascripts/notebook/cells/markdown.vue index a9079dbc1b9..2720c4cb994 100644 --- a/app/assets/javascripts/notebook/cells/markdown.vue +++ b/app/assets/javascripts/notebook/cells/markdown.vue @@ -45,7 +45,8 @@ let inline = false; if (typeof katex !== 'undefined') { - const katexString = text.replace(/&/g, '') + const katexString = text.replace(/&/g, '&') + .replace(/&=&/g, '\\space=\\space') .replace(/<(\/?)em>/g, '_'); const regex = new RegExp(katexRegexString, 'gi'); const numberOfMatches = katexString.match(regex); |