Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(sidebar): equations not rendered for read-only text
Elian Doran2b63af82ec9e
diff --git a/apps/client/src/widgets/sidebar/TableOfContents.tsx b/apps/client/src/widgets/sidebar/TableOfContents.tsxindex 03c62e1ad4..aca1c11c5b 100644--- a/apps/client/src/widgets/sidebar/TableOfContents.tsx+++ b/apps/client/src/widgets/sidebar/TableOfContents.tsx@@ -260,7 +260,7 @@ function extractTocFromStaticHtml(el: HTMLElement | null) {headings.push({id: randomString(),level: parseInt(headingEl.tagName.substring(1), 10),- text: headingEl.textContent,+ text: headingEl.innerHTML,element: headingEl});}