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 for link doubling
azivner63cc208ec71e
diff --git a/static/js/html2notecase.js b/static/js/html2notecase.jsindex ada8f6aee5..0482a35386 100644--- a/static/js/html2notecase.js+++ b/static/js/html2notecase.js@@ -106,6 +106,9 @@ function html2notecase(contents, note) {contents = contents.substr(0, index) + linkText + contents.substr(index + linkMatch[0].length);+ // we'll skip the link text so that it's not processed twice (second time by link auto detection)+ index += linkText.length;+found = true;}