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:
+1
-1
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user