1
0
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:
OpSimple 2019-08-11 01:15:21 +05:30 committed by GitHub
parent 985dd6f4b9
commit 9fcb235ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: [