diff options
author | OpSimple <opsimple@protonmail.com> | 2019-08-10 21:45:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-10 21:45:21 +0200 |
commit | 9fcb235ad50ecff98fdb013b611af9dfee85977f (patch) | |
tree | 3fbbafb3479a5d6ae568df5907efa1145ba5ef4c | |
parent | Modified the way to apply syntax highlighting (diff) | |
download | hackchat-9fcb235ad50ecff98fdb013b611af9dfee85977f.tar.gz hackchat-9fcb235ad50ecff98fdb013b611af9dfee85977f.zip |
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!
-rw-r--r-- | client/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
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: [ |