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 Markdown highlight feature
Elian Doranaef950162797
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Note Map (Link map, Tree map).html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Note Map (Link map, Tree map).htmlindex 69d9af588e..6d58ac635d 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Note Map (Link map, Tree map).html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Note Map (Link map, Tree map).html@@ -17,11 +17,11 @@href="#root/_help_BlN9DFI679QC">Ribbon</a>.</li></ul></li>- <li>To display a full-screen note map, there is a <a href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_bdUJEHsAPYQR">dedicated note type</a> with+ <li>To display a full-screen note map, there is a <a href="#root/_help_bdUJEHsAPYQR">dedicated note type</a> withthe same name.</li><li>To view the global note map (of all the notes in the knowledge base),there is a dedicated <em>Note map</em> button in the <a class="reference-link"- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_xYmIYSP6wE3F">Launch Bar</a>.</li>+ href="#root/_help_xYmIYSP6wE3F">Launch Bar</a>.</li></ul><h2>Terminology and structure</h2><ul>@@ -30,19 +30,18 @@<ul><li>When the map is zoomed out, the title can still be viewed by hoveringover the node.</li>- <li>The <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/BFs8mudNFgCS/_help_p9kXRFAkwN4o">icon and color</a> of- the note are respected.</li>+ <li>The <a href="#root/_help_p9kXRFAkwN4o">icon and color</a> of the note are respected.</li></ul></li><li>The root node is the reference point for which the relations and hierarchicalstructure are displayed.<ul><li>When accessing the note map through the <a class="reference-link"- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_BlN9DFI679QC">Ribbon</a> or- the <a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_RnaPdbciOfeq">Right Sidebar</a> (new- layout), the root node is the current note.</li>- <li>When using a dedicated <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_bdUJEHsAPYQR">Note Map</a> note,- the root note can be either the parent note, the currently <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/wArbEsdSae6g/_help_OR8WJ7Iz9K4U">hoisted</a> note+ href="#root/_help_BlN9DFI679QC">Ribbon</a> or the <a class="reference-link"+ href="#root/_help_RnaPdbciOfeq">Right Sidebar</a> (new layout), the root+ node is the current note.</li>+ <li>When using a dedicated <a class="reference-link" href="#root/_help_bdUJEHsAPYQR">Note Map</a> note,+ the root note can be either the parent note, the currently <a href="#root/_help_OR8WJ7Iz9K4U">hoisted</a> noteor a specific note. See the note type documentation for more information.</li></ul></li>@@ -61,16 +60,14 @@<li>When hovering over a node, the adjacent relations and nodes are highlighted.</li><li>The distance between nodes can be adjusted via the slider in the bottom-left.Similarly, this value is not saved.</li>- <li><a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/BFs8mudNFgCS/_help_MKmLg5x6xkor">Archived Notes</a> are+ <li><a class="reference-link" href="#root/_help_MKmLg5x6xkor">Archived Notes</a> aregenerally ignored by the note map in order to reduce clutter. There isone exception: if the root note is also archived, then all archived notesare displayed too.</li></ul><h2>Link Map</h2>-<p>- <img src="Note Map (Link map, Tree map)_image.png"- width="1425" height="1093">-</p>+<img src="Note Map (Link map, Tree map)_image.png"+width="1425" height="1093"><p>The link map is a visualization of links and <a class="reference-link"href="#root/_help_Cq5X6iKQop6R">Relations</a> incoming to and outgoing froma particular note.</p>@@ -95,7 +92,7 @@<ul><li>Apart from the note map feature which can be accessed from any note, itis also possible to create a dedicated note which will display the relations- in full screen. See <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_bdUJEHsAPYQR">Note Map</a> for+ in full screen. See <a class="reference-link" href="#root/_help_bdUJEHsAPYQR">Note Map</a> formore information.</li><li><a class="reference-link" href="#root/_help_iRwzGnHPzonm">Relation Map</a> isa similar concept, with some differences:diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.htmlindex 8d34406ffb..7284a0fe4a 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.html@@ -56,4 +56,17 @@<li>If there are multiple files & directories at root level, then thearchive root (containing all of these items) is considered the root.</li></ul>-</aside>\ No newline at end of file+</aside>+<h2>Highlights</h2>+<p>Background highlights are supported in two ways:</p>+<ul>+ <li>+ <p>The Markdown <code spellcheck="false">==</code> extension which is supported+ by other Markdown-based applications such as Obsidian:</p><pre><code class="language-text-x-markdown">==highlighted==</code></pre>+ </li>+ <li>+ <p>The canonical HTML representation of highlights, as supported by Trilium:</p><pre><code class="language-text-html"><span style="background-color:hsl(0,0%,100%);">Highlighted</span></code></pre>+ </li>+</ul>+<p>When the yellow highlight is used, import/export prefers the <code spellcheck="false">==</code> syntax+ whereas the canonical HTML reprepresentation is used otherwise.</p>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Markdown.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Markdown.htmlindex b40dca89fd..f9887b961e 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Markdown.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Markdown.html@@ -32,16 +32,11 @@<p>The following features are supported by Trilium's Markdown format andwill show up in the preview pane:</p><ul>- <li>- <p>All standard and GitHub-flavored syntax (basic formatting, tables, blockquotes).</p>- </li>- <li>- <p>Basic HTML is also supported (e.g. collapsible blocks using <code spellcheck="false"><details></code> and- <code- spellcheck="false"><summary></code>).</p>- </li>- <li>- <p>Code blocks with syntax highlight.</p>+ <li>All standard and GitHub-flavored syntax (basic formatting, tables, blockquotes).</li>+ <li>Basic HTML is also supported (e.g. collapsible blocks using <code spellcheck="false"><details></code> and+ <code+ spellcheck="false"><summary></code>).</li>+ <li>Code blocks with syntax highlight.<ul><li>The language must be specified for syntax highlight to be applied (e.g.<code@@ -51,19 +46,13 @@href="#root/_help_4TIF1oA4VQRO">Options</a>.</li></ul></li>- <li>- <p><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes & admonitions</a>- </p>+ <li><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes & admonitions</a></li>- <li>- <p><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a> (both- inline and block)</p>- </li>- <li>- <p><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a> using- <code- spellcheck="false">```mermaid</code>- </p>+ <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a> (both+ inline and block)</li>+ <li><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a> using+ <code+ spellcheck="false">```mermaid</code></li><li><p><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a> (no@@ -83,29 +72,30 @@</li><li><p>To-do lists with extended task states:</p>- <table class="ck-table-resized"- style="border-style:none">- <colgroup>- <col style="width:80.6%;">- <col style="width:19.4%;">- </colgroup>- <tbody>- <tr>- <td><pre><code class="language-text-x-markdown">- [ ] None+ <figure class="table">+ <table class="ck-table-resized" style="border-style:none;">+ <colgroup>+ <col style="width:80.6%;">+ <col style="width:19.4%;">+ </colgroup>+ <tbody>+ <tr>+ <td><pre><code class="language-text-x-markdown">- [ ] None- [/] Doing- [X] Done- [?] Maybe- [-] Cancelled</code></pre>- </td>- <td>- <figure class="image image-style-align-right">- <img style="aspect-ratio:218/221;" src="Markdown_image.png"- width="218" height="221">- </figure>- </td>- </tr>- </tbody>- </table>+ </td>+ <td>+ <figure class="image image-style-align-right">+ <img style="aspect-ratio:218/221;" src="Markdown_image.png"+ width="218" height="221">+ </figure>+ </td>+ </tr>+ </tbody>+ </table>+ </figure><p>Task states are customizable: you can reorder them, create new ones withdifferent colors and symbols, or delete the ones you don't need. See <a@@ -126,6 +116,11 @@<li><p>Page breaks for <a class="reference-link" href="#root/_help_NRnIZmSMc5sj">Printing & Exporting as PDF</a>:</p><pre><code class="language-text-x-trilium-auto"><div class="page-break"></div></code></pre></li>+ <li>+ <p>Highlights (background color) are supported both via the <code spellcheck="false">==</code> Markdown+ syntax, as well as the canonical HTML representation in Trilium:</p><pre><code class="language-text-x-markdown">==highlighted==+<span style="background-color:hsl(0,0%,100%);">Highlighted</span></code></pre>+ </li></ul><h3>Links</h3><p>Multiple types of links are supported:</p>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Note Map.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Note Map.htmlindex e91fcebfc2..3a955a0f10 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Note Map.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Note Map.html@@ -3,7 +3,7 @@width="1311" height="1271"></figure><p>A Note map is a note type which displays a standalone version of the feature- of the same name: <a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/_help_BCkXAVs63Ttv">Note Map (Link map, Tree map)</a>.+ of the same name: <a class="reference-link" href="#root/_help_BCkXAVs63Ttv">Note Map (Link map, Tree map)</a>.Consult that page for more information on how the note map works and whatit displays.</p><p>Once created, the note map will display the relations between notes. Only@@ -14,18 +14,12 @@relations and the hierarchy are derived from.</p><p>There are three possible root notes:</p><ul>- <li>- <p>The default root note is the parent note of the note map.</p>- </li>- <li>- <p>To use the currently <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/wArbEsdSae6g/_help_OR8WJ7Iz9K4U">hoisted note</a> instead,- set the <code spellcheck="false">mapRootNoteId</code> label to <code spellcheck="false">hoisted</code>.</p>- </li>- <li>- <p>To use a specific note instead, set <code spellcheck="false">mapRootNoteId</code> to- the <a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/_help_m1lbrzyKDaRB">Note ID</a> of- the desired note.</p>- </li>+ <li>The default root note is the parent note of the note map.</li>+ <li>To use the currently <a href="#root/_help_OR8WJ7Iz9K4U">hoisted note</a> instead,+ set the <code spellcheck="false">mapRootNoteId</code> label to <code spellcheck="false">hoisted</code>.</li>+ <li>To use a specific note instead, set <code spellcheck="false">mapRootNoteId</code> to+ the <a class="reference-link" href="#root/_help_m1lbrzyKDaRB">Note ID</a> of+ the desired note.</li></ul><h2>Customization</h2><p>The note map can be customized using the following <a class="reference-link"diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Links/Backlinks.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Links/Backlinks.htmlindex 7b1b383289..cdf4889a68 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Links/Backlinks.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Links/Backlinks.html@@ -5,7 +5,7 @@A backlink disappears when the note that created it removes the link; itcannot be deleted from the note being pointed at.</p><h2>What counts as a backlink</h2>-<p>Any r<a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/QEAPj01N5f7w/_help_hrZ1D00cLbal">Internal (reference) links</a> pointing+<p>Any r<a class="reference-link" href="#root/_help_hrZ1D00cLbal">Internal (reference) links</a> pointingat the current note, which covers two rather different cases:</p><ul><li>Relations that Trilium maintains on your behalf.@@ -26,7 +26,7 @@</ul></li></ul>-<p>Relations coming from a <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_m523cpzocqaD">Saved Search</a> are+<p>Relations coming from a <a class="reference-link" href="#root/_help_m523cpzocqaD">Saved Search</a> areexcluded, since a search stores an <code spellcheck="false">ancestor</code> relationthat would otherwise list every one of its results as a backlink.</p><asidediff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex 686a75cc5a..1defc19d29 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -11272,59 +11272,73 @@{"type": "relation","name": "internalLink",- "value": "6f9hih2hXXZk",+ "value": "m523cpzocqaD","isInheritable": false,"position": 20},{"type": "relation","name": "internalLink",- "value": "iPIMuisry3hd",+ "value": "6f9hih2hXXZk","isInheritable": false,"position": 30},{"type": "relation","name": "internalLink",- "value": "GBBMSlVSOIGP",+ "value": "iPIMuisry3hd","isInheritable": false,"position": 40},{"type": "relation","name": "internalLink",- "value": "iRwzGnHPzonm",+ "value": "GBBMSlVSOIGP","isInheritable": false,"position": 50},{"type": "relation","name": "internalLink",- "value": "KRlZFoIH0j6p",+ "value": "iRwzGnHPzonm","isInheritable": false,"position": 60},{"type": "relation","name": "internalLink",- "value": "RnaPdbciOfeq",+ "value": "KRlZFoIH0j6p","isInheritable": false,"position": 70},{"type": "relation","name": "internalLink",- "value": "AlJ73vBCjWDw",+ "value": "RnaPdbciOfeq","isInheritable": false,"position": 80},{"type": "relation","name": "internalLink",- "value": "XpOYSgsLkTJy",+ "value": "AlJ73vBCjWDw",+ "isInheritable": false,+ "position": 90+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "BCkXAVs63Ttv","isInheritable": false,"position": 100},+ {+ "type": "relation",+ "name": "internalLink",+ "value": "XpOYSgsLkTJy",+ "isInheritable": false,+ "position": 110+ },{"type": "label","name": "shareAlias",@@ -11338,20 +11352,6 @@"value": "bx bx-link-alt","isInheritable": false,"position": 90- },- {- "type": "relation",- "name": "internalLink",- "value": "m523cpzocqaD",- "isInheritable": false,- "position": 110- },- {- "type": "relation",- "name": "internalLink",- "value": "BCkXAVs63Ttv",- "isInheritable": false,- "position": 120}],"format": "markdown",@@ -12580,44 +12580,44 @@{"type": "relation","name": "internalLink",- "value": "HI6GBBIduIgv",- "isInheritable": false,- "position": 20- },- {- "type": "label",- "name": "iconClass",- "value": "bx bxs-network-chart",+ "value": "BCkXAVs63Ttv","isInheritable": false,"position": 10},{- "type": "label",- "name": "shareAlias",- "value": "note-map",+ "type": "relation",+ "name": "internalLink",+ "value": "OR8WJ7Iz9K4U","isInheritable": false,"position": 20},{"type": "relation","name": "internalLink",- "value": "BCkXAVs63Ttv",+ "value": "m1lbrzyKDaRB","isInheritable": false,"position": 30},{"type": "relation","name": "internalLink",- "value": "OR8WJ7Iz9K4U",+ "value": "HI6GBBIduIgv","isInheritable": false,"position": 40},{- "type": "relation",- "name": "internalLink",- "value": "m1lbrzyKDaRB",+ "type": "label",+ "name": "iconClass",+ "value": "bx bxs-network-chart","isInheritable": false,- "position": 50+ "position": 10+ },+ {+ "type": "label",+ "name": "shareAlias",+ "value": "note-map",+ "isInheritable": false,+ "position": 20}],"format": "markdown",@@ -17168,72 +17168,72 @@{"type": "relation","name": "internalLink",- "value": "Cq5X6iKQop6R",+ "value": "bdUJEHsAPYQR","isInheritable": false,"position": 50},{"type": "relation","name": "internalLink",- "value": "hrZ1D00cLbal",+ "value": "xYmIYSP6wE3F","isInheritable": false,"position": 60},{"type": "relation","name": "internalLink",- "value": "iRwzGnHPzonm",- "isInheritable": false,- "position": 80- },- {- "type": "label",- "name": "shareAlias",- "value": "note-map",+ "value": "p9kXRFAkwN4o","isInheritable": false,- "position": 30+ "position": 70},{- "type": "label",- "name": "iconClass",- "value": "bx bxs-network-chart",+ "type": "relation",+ "name": "internalLink",+ "value": "OR8WJ7Iz9K4U","isInheritable": false,- "position": 40+ "position": 80},{"type": "relation","name": "internalLink",- "value": "bdUJEHsAPYQR",+ "value": "MKmLg5x6xkor","isInheritable": false,"position": 90},{"type": "relation","name": "internalLink",- "value": "MKmLg5x6xkor",+ "value": "Cq5X6iKQop6R","isInheritable": false,"position": 100},{"type": "relation","name": "internalLink",- "value": "p9kXRFAkwN4o",+ "value": "hrZ1D00cLbal","isInheritable": false,"position": 110},{"type": "relation","name": "internalLink",- "value": "xYmIYSP6wE3F",+ "value": "iRwzGnHPzonm","isInheritable": false,"position": 120},{- "type": "relation",- "name": "internalLink",- "value": "OR8WJ7Iz9K4U",+ "type": "label",+ "name": "shareAlias",+ "value": "note-map","isInheritable": false,- "position": 130+ "position": 30+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bxs-network-chart",+ "isInheritable": false,+ "position": 40}],"format": "markdown",diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.mdindex e537d549a1..34df67b555 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.md@@ -54,4 +54,21 @@ This feature is import-only, which means that it will turn wikilinks into Triliu> The root path of the import is determined as follows:>> * If there is a single directory within the archive at root level, then that directory is considered the root.-> * If there are multiple files & directories at root level, then the archive root (containing all of these items) is considered the root.\ No newline at end of file+> * If there are multiple files & directories at root level, then the archive root (containing all of these items) is considered the root.++## Highlights++Background highlights are supported in two ways:++* The Markdown `==` extension which is supported by other Markdown-based applications such as Obsidian:++ ```markdown+ ==highlighted==+ ```+* The canonical HTML representation of highlights, as supported by Trilium:++ ```html+ <span style="background-color:hsl(0,0%,100%);">Highlighted</span>+ ```++When the yellow highlight is used, import/export prefers the `==` syntax whereas the canonical HTML reprepresentation is used otherwise.\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Markdown.md b/docs/User Guide/User Guide/Note Types/Markdown.mdindex 5f8ddb5db2..56c1feec46 100644--- a/docs/User Guide/User Guide/Note Types/Markdown.md+++ b/docs/User Guide/User Guide/Note Types/Markdown.md@@ -27,7 +27,6 @@ The following features are supported by Trilium's Markdown format and will show* All standard and GitHub-flavored syntax (basic formatting, tables, blockquotes).* Basic HTML is also supported (e.g. collapsible blocks using `<details>` and `<summary>`).* Code blocks with syntax highlight.-* The language must be specified for syntax highlight to be applied (e.g. ` ```js `).* Code blocks will respect the text wrapping from the <a class="reference-link" href="Text.md">Text</a> section in <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a>.* <a class="reference-link" href="Text/Block%20quotes%20%26%20admonitions.md">Block quotes & admonitions</a>@@ -49,7 +48,7 @@ The following features are supported by Trilium's Markdown format and will show```* To-do lists with extended task states:- <table class="ck-table-resized" style="border-style:none">+ <table class="ck-table-resized" style="border-style:none;"><colgroup><col style="width:80.6%;"><col style="width:19.4%;">@@ -84,6 +83,12 @@ The following features are supported by Trilium's Markdown format and will show```<div class="page-break"></div>```+* Highlights (background color) are supported both via the `==` Markdown syntax, as well as the canonical HTML representation in Trilium:++ ```markdown+ ==highlighted==+ <span style="background-color:hsl(0,0%,100%);">Highlighted</span>+ ```### Links