summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-30 13:08:38 +0100
committerPhil Hughes <me@iamphill.com>2017-05-30 16:00:57 +0100
commit749b2aaec00214e7c8e5d68665d9894d6279eca5 (patch)
tree8399c57f6613cad3ec75970d15f15384c75c04a4
parent9fe54f8660c6a6e29e1b375a6a74f31b1e41793c (diff)
downloadgitlab-ce-749b2aaec00214e7c8e5d68665d9894d6279eca5.tar.gz
fixed spacing because of removed &
-rw-r--r--app/assets/javascripts/notebook/cells/markdown.vue3
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(/&amp;/g, '')
+ const katexString = text.replace(/&amp;/g, '&')
+ .replace(/&=&/g, '\\space=\\space')
.replace(/<(\/?)em>/g, '_');
const regex = new RegExp(katexRegexString, 'gi');
const numberOfMatches = katexString.match(regex);