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
docs(user): mention internal link rewriting process
Elian Doran8c01ca8bc1af
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.htmlindex c642e9db6e..235996896f 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.html@@ -93,6 +93,8 @@</li><li>Toggle sections</li><li>External links</li>+ <li>Internal links are re-written to <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/QEAPj01N5f7w/_help_hrZ1D00cLbal">Internal (reference) links</a> if+ the target note is part of the same import.</li></ul><h2>Limitations</h2><ul>@@ -105,9 +107,35 @@>If you have HTML inside ENEX files, the HTML formatting may be brokenor lost after import in Trilium. See <a class="reference-link" href="#root/_help_wy8So3yZZlH9">Reporting issues</a>.</li></ul>-<h3>Internal links</h3>-<p>The importer cannot transform Evernote internal links into Trilium internal- links because Evernote internal note IDs are not preserved in ENEX files.</p>+<h3>Links to other notes</h3>+<p>Since v0.104.0, the ENEX importer tries to recreate links to other notes+ automatically by converting their Evernote-specific URLs to Trilium's + <a+ class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/QEAPj01N5f7w/_help_hrZ1D00cLbal">Internal (reference) links</a>.</p>+<p>Since the ENEX format does not provide the unique ID of notes, the note+ references are determined via their note title.</p>+<p>Limitations:</p>+<ul>+ <li>+ <p>Only notes that are part of the same import will have their links rewritten+ to reference links, to avoid linking to the wrong note.</p>+ </li>+ <li>+ <p>If there are to notes with the same name, internal links will not be created+ to avoid pointing to the wrong note.</p>+ </li>+ <li>+ <p>Links that couldn't be rewritten (e.g. referring to a missing/duplicate+ note) will be kept with their original <code spellcheck="false">evernote://</code> URL.</p>+ </li>+ <li>It will not fix links to anchors and links to notes that you renamed in+ Evernote after you created the links.</li>+</ul>+<h4>Post-processing notes</h4>+<aside class="admonition tip">+ <p>This script allows rewriting links after the import has been done, and+ it should also allow finding links between two different imports.</p>+</aside><p>If you want to restore the internal links in Trilium after you importall of your ENEX files, you can use or adapt this custom script: <adiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.mdindex 89d31b9165..de14e5b9a9 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Evernote.md@@ -53,6 +53,7 @@ The following features are preserved by Trilium during the import process:* <a class="reference-link" href="../../../Note%20Types/Text/Math%20Equations.md">Math Equations</a>* Toggle sections* External links+* Internal links are re-written to <a class="reference-link" href="../../../Note%20Types/Text/Links/Internal%20(reference)%20links.md">Internal (reference) links</a> if the target note is part of the same import.## Limitations@@ -60,9 +61,23 @@ The following features are preserved by Trilium during the import process:* All resources (except for images) are created as notes’ attachments.* If you have HTML inside ENEX files, the HTML formatting may be broken or lost after import in Trilium. See <a class="reference-link" href="../../../Troubleshooting/Reporting%20issues.md">Reporting issues</a>.-### Internal links+### Links to other notes-The importer cannot transform Evernote internal links into Trilium internal links because Evernote internal note IDs are not preserved in ENEX files.+Since v0.104.0, the ENEX importer tries to recreate links to other notes automatically by converting their Evernote-specific URLs to Trilium's <a class="reference-link" href="../../../Note%20Types/Text/Links/Internal%20(reference)%20links.md">Internal (reference) links</a>.++Since the ENEX format does not provide the unique ID of notes, the note references are determined via their note title.++Limitations:++* Only notes that are part of the same import will have their links rewritten to reference links, to avoid linking to the wrong note.+* If there are to notes with the same name, internal links will not be created to avoid pointing to the wrong note.+* Links that couldn't be rewritten (e.g. referring to a missing/duplicate note) will be kept with their original `evernote://` URL.+* It will not fix links to anchors and links to notes that you renamed in Evernote after you created the links.++#### Post-processing notes++> [!TIP]+> This script allows rewriting links after the import has been done, and it should also allow finding links between two different imports.If you want to restore the internal links in Trilium after you import all of your ENEX files, you can use or adapt this custom script: <a class="reference-link" href="Evernote/Process%20internal%20links%20by%20title.js">Process internal links by title</a>