Commit 749b2aae authored by Phil Hughes's avatar Phil Hughes

fixed spacing because of removed &

parent 9fe54f86
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment