mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
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:
parent
985dd6f4b9
commit
9fcb235ad5
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user