From 9fcb235ad50ecff98fdb013b611af9dfee85977f Mon Sep 17 00:00:00 2001 From: OpSimple Date: Sun, 11 Aug 2019 01:15:21 +0530 Subject: 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! --- client/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/client.js b/client/client.js index 7c87ec0..f55c388 100644 --- a/client/client.js +++ b/client/client.js @@ -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: [ -- cgit v1.2.1