Commit 9fe54f86 authored by Phil Hughes's avatar Phil Hughes

fixed & being rendered

parent e818195b
...@@ -45,9 +45,8 @@ ...@@ -45,9 +45,8 @@
let inline = false; let inline = false;
if (typeof katex !== 'undefined') { if (typeof katex !== 'undefined') {
const katexString = text.replace(/&/g, '&') const katexString = text.replace(/&/g, '')
.replace(/&=&/g, '\\&=\\&') .replace(/<(\/?)em>/g, '_');
.replace(/<(\/?)em>/g, '');
const regex = new RegExp(katexRegexString, 'gi'); const regex = new RegExp(katexRegexString, 'gi');
const numberOfMatches = katexString.match(regex); 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