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

fixed & being rendered

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