Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-30 15:08:38 +0300
committerPhil Hughes <me@iamphill.com>2017-05-30 18:00:57 +0300
commit749b2aaec00214e7c8e5d68665d9894d6279eca5 (patch)
tree8399c57f6613cad3ec75970d15f15384c75c04a4 /app
parent9fe54f8660c6a6e29e1b375a6a74f31b1e41793c (diff)
fixed spacing because of removed &
Diffstat (limited to 'app')
-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);