summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notebook
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-30 12:59:14 +0100
committerPhil Hughes <me@iamphill.com>2017-05-30 16:00:57 +0100
commit9fe54f8660c6a6e29e1b375a6a74f31b1e41793c (patch)
tree1bd776df5a1e1702d38400f5c4baa2d7013691b4 /app/assets/javascripts/notebook
parente818195b2be798b1c60e00124a284b2e8f47bf0b (diff)
downloadgitlab-ce-9fe54f8660c6a6e29e1b375a6a74f31b1e41793c.tar.gz
fixed & being rendered
Diffstat (limited to 'app/assets/javascripts/notebook')
-rw-r--r--app/assets/javascripts/notebook/cells/markdown.vue5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/notebook/cells/markdown.vue b/app/assets/javascripts/notebook/cells/markdown.vue
index 53761c16de3..a9079dbc1b9 100644
--- a/app/assets/javascripts/notebook/cells/markdown.vue
+++ b/app/assets/javascripts/notebook/cells/markdown.vue
@@ -45,9 +45,8 @@
let inline = false;
if (typeof katex !== 'undefined') {
- const katexString = text.replace(/&amp;/g, '&')
- .replace(/&=&/g, '\\&=\\&')
- .replace(/<(\/?)em>/g, '');
+ const katexString = text.replace(/&amp;/g, '')
+ .replace(/<(\/?)em>/g, '_');
const regex = new RegExp(katexRegexString, 'gi');
const numberOfMatches = katexString.match(regex);