diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-30 13:08:38 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-30 16:00:57 +0100 |
commit | 749b2aaec00214e7c8e5d68665d9894d6279eca5 (patch) | |
tree | 8399c57f6613cad3ec75970d15f15384c75c04a4 | |
parent | 9fe54f8660c6a6e29e1b375a6a74f31b1e41793c (diff) | |
download | gitlab-ce-749b2aaec00214e7c8e5d68665d9894d6279eca5.tar.gz |
fixed spacing because of removed &
-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); |