diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-30 12:59:14 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-30 16:00:57 +0100 |
commit | 9fe54f8660c6a6e29e1b375a6a74f31b1e41793c (patch) | |
tree | 1bd776df5a1e1702d38400f5c4baa2d7013691b4 /app/assets/javascripts/notebook | |
parent | e818195b2be798b1c60e00124a284b2e8f47bf0b (diff) | |
download | gitlab-ce-9fe54f8660c6a6e29e1b375a6a74f31b1e41793c.tar.gz |
fixed & being rendered
Diffstat (limited to 'app/assets/javascripts/notebook')
-rw-r--r-- | app/assets/javascripts/notebook/cells/markdown.vue | 5 |
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(/&/g, '&') - .replace(/&=&/g, '\\&=\\&') - .replace(/<(\/?)em>/g, ''); + const katexString = text.replace(/&/g, '') + .replace(/<(\/?)em>/g, '_'); const regex = new RegExp(katexRegexString, 'gi'); const numberOfMatches = katexString.match(regex); |