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
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-30 15:41:14 +0300
committerPhil Hughes <me@iamphill.com>2017-05-30 18:00:57 +0300
commit8e74fcbc45bb110e7574f4e7e5ee72dea6b21675 (patch)
tree2f0969eb7ba348f846a4f2eb56f2e6d0815a6ada /app/assets/javascripts/notebook
parent749b2aaec00214e7c8e5d68665d9894d6279eca5 (diff)
fixed spacing before inline math
Diffstat (limited to 'app/assets/javascripts/notebook')
-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 2720c4cb994..77264b162a5 100644
--- a/app/assets/javascripts/notebook/cells/markdown.vue
+++ b/app/assets/javascripts/notebook/cells/markdown.vue
@@ -57,7 +57,8 @@
inline = true;
while (matches !== null) {
- text = `${text.replace(matches[0], katex.renderToString(matches[0].replace(/\$/g, '')))}`;
+ const renderedKatex = katex.renderToString(matches[0].replace(/\$/g, ''));
+ text = `${text.replace(matches[0], ` ${renderedKatex}`)}`;
matches = regex.exec(katexString);
}
} else {