Minor change for a major fix

I forgot to change `holEl.textContent` with `holEl.innerHTML` after I shifted the links parsing line at the last. Earlier, I felt its need to preserve the anchor tags. Finally, fixed it!
This commit is contained in:
OpSimple
2019-08-11 01:15:21 +05:30
committed by GitHub
parent 985dd6f4b9
commit 9fcb235ad5
+1 -1
View File
@@ -418,7 +418,7 @@ function parseLatex(str) {
// Temporary hotfix for \rule spamming, see https://github.com/Khan/KaTeX/issues/109
str = str.replace(/\\rule|\\\\\s*\[.*?\]/g, '');
var holEl = document.createElement('p');
holEl.innerHTML = str;
holEl.textContent = str;
try {
renderMathInElement(holEl, {
delimiters: [