Skip to content

Build your personal knowledge base with Trilium Notes

fix(docs): don't prefix canonical hidden-subtree links with _help_ (closes #9646)

Elian Doran86a98b20f832
diff --git a/apps/edit-docs/src/edit-docs.ts b/apps/edit-docs/src/edit-docs.ts
index 9d0257fefc..c8c5860b35 100644
--- a/apps/edit-docs/src/edit-docs.ts
+++ b/apps/edit-docs/src/edit-docs.ts
@@ -8,7 +8,7 @@ import yaml from "js-yaml";
import path from "path";
import packageJson from "../package.json" with { type: "json" };
-import { extractZip, importData, initializeEditDocsCore, startElectron } from "./utils.js";
+import { extractZip, importData, initializeEditDocsCore, rewriteHelpLinks, startElectron } from "./utils.js";
interface NoteMapping {
rootNoteId: string;
@@ -183,11 +183,7 @@ async function exportData(noteId: string, format: ExportFormat, outputPath: stri
return url ? `href="${url}"` : match;
});
- content = content.replace(/href="[^"]*#root[a-zA-Z0-9_\/]*\/([a-zA-Z0-9_]+)[^"]*"/g, (match, targetNoteId) => {
- const components = match.split("/");
- components[components.length - 1] = `_help_${components[components.length - 1]}`;
- return components.join("/");
- });
+ content = rewriteHelpLinks(content);
// Remove data-list-item-id created by CKEditor for lists
content = content.replace(/ data-list-item-id="[^"]*"/g, "");
diff --git a/apps/edit-docs/src/utils.spec.ts b/apps/edit-docs/src/utils.spec.ts
new file mode 100644
index 0000000000..1349f26bf7
--- /dev/null
+++ b/apps/edit-docs/src/utils.spec.ts
@@ -0,0 +1,43 @@
+import { describe, expect, it, vi } from "vitest";
+
+import { rewriteHelpLinks } from "./utils.js";
+
+// utils.ts bootstraps Electron at module load (registers the `trilium-app://` scheme and
+// pulls in the desktop window service, whose resource_dir lookup calls process.exit in a
+// non-Electron test runner). Stub those side-effectful imports so the pure helpers below
+// (rewriteHelpLinks) can be imported in isolation.
+vi.mock("electron", () => ({ default: { app: {}, protocol: { registerSchemesAsPrivileged: () => {} } } }));
+vi.mock("@triliumnext/desktop/src/protocol.js", () => ({ registerTriliumAppScheme: () => {}, setupTriliumAppProtocol: () => {} }));
+vi.mock("@triliumnext/desktop/src/services/window.js", () => ({ default: {}, setupWindowing: () => {} }));
+
+describe("rewriteHelpLinks", () => {
+ it("prefixes plain help-note links with _help_", () => {
+ const input = `<a class="reference-link" href="#root/iPIMuisry3hd">Text</a>`;
+ expect(rewriteHelpLinks(input)).toBe(`<a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>`);
+ });
+
+ it("does not prefix canonical hidden-subtree notes that already start with an underscore", () => {
+ // `_optionsTextNotes` keeps its canonical ID in production; prefixing it would produce the
+ // broken `_help__optionsTextNotes` link reported in issue #9646.
+ const input = `<a href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a>`;
+ expect(rewriteHelpLinks(input)).toBe(input);
+ });
+
+ it("leaves both options links untouched while still prefixing a sibling help link", () => {
+ const input = [
+ `<a href="#root/_help_4TIF1oA4VQRO">Options</a>`,
+ `<a href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a>`,
+ `<a href="#root/_hidden/_options/_optionsCodeNotes">Code Notes</a>`
+ ].join(" ");
+ const result = rewriteHelpLinks(input);
+
+ expect(result).not.toContain("_help__");
+ expect(result).toContain("#root/_hidden/_options/_optionsTextNotes");
+ expect(result).toContain("#root/_hidden/_options/_optionsCodeNotes");
+ });
+
+ it("is idempotent for already-prefixed help links", () => {
+ const input = `<a href="#root/_help_iPIMuisry3hd">Text</a>`;
+ expect(rewriteHelpLinks(input)).toBe(input);
+ });
+});
diff --git a/apps/edit-docs/src/utils.ts b/apps/edit-docs/src/utils.ts
index b408875483..1015d8531d 100644
--- a/apps/edit-docs/src/utils.ts
+++ b/apps/edit-docs/src/utils.ts
@@ -169,6 +169,29 @@ function waitForEnd(archive: Archiver, stream: WriteStream) {
});
}
+/**
+ * Rewrites internal `#root/...` note links in exported help HTML so that they resolve
+ * against the help subtree once imported into a production Trilium instance.
+ *
+ * In the edit-docs instance the help notes carry plain, randomly generated IDs, but in
+ * production they live under the `_help` subtree with a `_help_` prefix. This adds that
+ * prefix to the link's target note ID.
+ */
+export function rewriteHelpLinks(content: string): string {
+ return content.replace(/href="[^"]*#root[a-zA-Z0-9_/]*\/([a-zA-Z0-9_]+)[^"]*"/g, (match, targetNoteId) => {
+ // Canonical hidden-subtree notes (e.g. _options, _optionsTextNotes) keep their IDs in
+ // production, so they already start with an underscore. Only help notes (random
+ // alphanumeric IDs) get the `_help_` prefix; prefixing the others would produce broken
+ // `_help__optionsTextNotes`-style links (see issue #9646).
+ if (targetNoteId.startsWith("_")) {
+ return match;
+ }
+ const components = match.split("/");
+ components[components.length - 1] = `_help_${components[components.length - 1]}`;
+ return components.join("/");
+ });
+}
+
export async function createZipFromDirectory(dirPath: string, zipPath: string) {
const archive = new ZipArchive({ zlib: { level: 5 } });
const outputStream = createWriteStream(zipPath);
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Hidden Notes.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Hidden Notes.html
index c3e6b3cd97..3ca86d0e77 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Hidden Notes.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Hidden Notes.html
@@ -35,7 +35,7 @@ class="ck-table-resized">
</thead>
<tbody>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__globalNoteMap">Note Map</a>
+ <td><a class="reference-link" href="#root/_hidden/_globalNoteMap">Note Map</a>
</td>
<td>
<p>This note is actually opened when the&nbsp;<a class="reference-link" href="#root/_help_bdUJEHsAPYQR">Note Map</a>&nbsp;feature
@@ -46,7 +46,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__sqlConsole">SQL Console History</a>
+ <td><a class="reference-link" href="#root/_hidden/_sqlConsole">SQL Console History</a>
</td>
<td>
<p>When SQL queries or commands are executed in the&nbsp;<a class="reference-link"
@@ -60,7 +60,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__search">Search History</a>
+ <td><a class="reference-link" href="#root/_hidden/_search">Search History</a>
</td>
<td>
<p>Whenever a search is executed from the full&nbsp;<a class="reference-link"
@@ -74,7 +74,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__bulkAction">Bulk Action</a>
+ <td><a class="reference-link" href="#root/_hidden/_bulkAction">Bulk Action</a>
</td>
<td>
<p>This section is used for&nbsp;<a class="reference-link" href="#root/_help_ivYnonVFBxbQ">Bulk Actions</a>.
@@ -85,7 +85,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__backendLog">Backend Log</a>
+ <td><a class="reference-link" href="#root/_hidden/_backendLog">Backend Log</a>
</td>
<td>
<p>This note corresponds to the backend log feature (see&nbsp;<a class="reference-link"
@@ -96,7 +96,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__userHidden">User Hidden</a>
+ <td><a class="reference-link" href="#root/_hidden/_userHidden">User Hidden</a>
</td>
<td>This section can be used by <a href="#root/_help_CdNpE2pqjmI6">scripts</a> to
create their own notes that should not be directly visible to the user.
@@ -104,7 +104,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__lbTplRoot">Launch Bar Templates</a>
+ <td><a class="reference-link" href="#root/_hidden/_lbTplRoot">Launch Bar Templates</a>
</td>
<td>
<p>This section contains the templates for the creation of launchers in the&nbsp;
@@ -115,7 +115,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__share">Shared Notes</a>
+ <td><a class="reference-link" href="#root/_hidden/_share">Shared Notes</a>
</td>
<td>
<p>This tree lists all of the notes that are <a href="#root/_help_R9pX4DGra2Vt">shared</a> publicly.
@@ -128,7 +128,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__lbRoot">Launch Bar</a>
+ <td><a class="reference-link" href="#root/_hidden/_lbRoot">Launch Bar</a>
</td>
<td>
<p>The tree contains both available and displayed items of the&nbsp;<a class="reference-link"
@@ -144,7 +144,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__options">Options</a>
+ <td><a class="reference-link" href="#root/_hidden/_options">Options</a>
</td>
<td>
<p>This section stores the list of&nbsp;<a class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a>.</p>
@@ -158,7 +158,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__lbMobileRoot">Mobile Launch Bar</a>
+ <td><a class="reference-link" href="#root/_hidden/_lbMobileRoot">Mobile Launch Bar</a>
</td>
<td>
<p>This is very similar to the <em>Launch Bar</em>, but is dedicated for the
@@ -168,7 +168,7 @@ class="ck-table-resized">
</td>
</tr>
<tr>
- <td><a class="reference-link" href="#root/_hidden/_help__help">User Guide</a>
+ <td><a class="reference-link" href="#root/_hidden/_help">User Guide</a>
</td>
<td>This is where the note structure for the User Guide is actually stored.
Only the metadata is stored, as the help itself is present as actual files
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Text Extraction (OCR).html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Text Extraction (OCR).html
index 5aee9c834a..30f5228f85 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Text Extraction (OCR).html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Text Extraction (OCR).html
@@ -52,7 +52,7 @@
<h2>Configuring and triggering OCR</h2>
<p>The OCR can be configured by going to&nbsp;<a class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;→&nbsp;
<a
- class="reference-link" href="#root/_hidden/_options/_help__optionsMedia">Media</a>&nbsp;and looking for the <em>Text Extraction (OCR)</em> section.</p>
+ class="reference-link" href="#root/_hidden/_options/_optionsMedia">Media</a>&nbsp;and looking for the <em>Text Extraction (OCR)</em> section.</p>
<p>There are three ways to trigger the OCR:</p>
<ul>
<li>By enabling <em>Auto-process new files</em> which will process only the
@@ -77,7 +77,7 @@
by the default language.</p>
<p>To configure the languages that are supported by the OCR, simply go to&nbsp;
<a
- class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;→&nbsp;<a class="reference-link" href="#root/_hidden/_options/_help__optionsLocalization">Language &amp; Region</a>&nbsp;and
+ class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;→&nbsp;<a class="reference-link" href="#root/_hidden/_options/_optionsLocalization">Language &amp; Region</a>&nbsp;and
adjust the <em>Content languages</em>.</p>
<p>When there are no content languages defined, the user interface <em>Language</em> is
used instead.</p>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html
index 22b288cdc8..2297091a49 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html
@@ -42,8 +42,7 @@
the search configuration pane.</li>
<li>The <em>Search &amp; Execute actions</em> button is only relevant if at
least one action has been added (as described in the section below).</li>
- <li
- >The <em>Save to note</em> will create a new note with the search configuration.
+ <li>The <em>Save to note</em> will create a new note with the search configuration.
For more information, see&nbsp;<a class="reference-link" href="#root/_help_m523cpzocqaD">Saved Search</a>.</li>
</ol>
<h2>Search options</h2>
@@ -51,8 +50,7 @@
<ul>
<li>For each search option selected, the search configuration will update
to reveal the entry. Each search option will have its own configuration.</li>
- <li
- >To remove a search option, simply press the X button to the right of it.</li>
+ <li>To remove a search option, simply press the X button to the right of it.</li>
</ul>
<p>The options available are:</p>
<ol>
@@ -66,9 +64,8 @@
<ol>
<li>The search will not look into the content of the notes, but it will still
look into note titles and attributes, relations (based on the search query).</li>
- <li
- >This method can speed up the search considerably for large <a href="#root/_help_wX4HbRucYSDD">databases</a>.</li>
- </ol>
+ <li>This method can speed up the search considerably for large <a href="#root/_help_wX4HbRucYSDD">databases</a>.</li>
+ </ol>
</li>
<li>Include archived
<ol>
@@ -80,10 +77,9 @@
<ol>
<li>Allows changing the criteria for ordering the results, for example to
order by creation date or alphabetically instead of by relevancy (default).</li>
- <li
- >It's also possible to change the order (ascending or descending) of the
+ <li>It's also possible to change the order (ascending or descending) of the
results.</li>
- </ol>
+ </ol>
</li>
<li>Limit
<ol>
@@ -97,11 +93,10 @@
<li>This will print additional information in the server log (see&nbsp;
<a
class="reference-link" href="#root/_help_qzNzp9LYQyPT">Error logs</a>), regarding how the search expression was parsed.</li>
- <li
- >This function is especially useful after understanding the search functionality
+ <li>This function is especially useful after understanding the search functionality
in detail, in order to determine why a complex search query is not working
as expected.</li>
- </ol>
+ </ol>
</li>
<li>Action
<ol>
@@ -131,34 +126,30 @@
Find notes containing "rings" or "tolkien" in their content.</li>
<li><code spellcheck="false">towers #book</code>: Combine full-text and attribute
search to find notes containing "towers" and having the "book" label.</li>
- <li
- ><code spellcheck="false">towers #book or #author</code>: Search for notes
+ <li><code spellcheck="false">towers #book or #author</code>: Search for notes
containing "towers" and having either the "book" or "author" label.</li>
- <li
- ><code spellcheck="false">towers #!book</code>: Search for notes containing
- "towers" and not having the "book" label.</li>
- <li><code spellcheck="false">#book #publicationYear = 1954</code>: Find notes
- with the "book" label and "publicationYear" set to 1954.</li>
- <li><code spellcheck="false">#genre *=* fan</code>: Find notes with the "genre"
- label containing the substring "fan". Additional operators include
- <code
- spellcheck="false">*=*</code>for "contains", <code spellcheck="false">=*</code> for "starts
- with", <code spellcheck="false">*=</code> for "ends with", and <code spellcheck="false">!=</code> for
- "is not equal to".</li>
- <li><code spellcheck="false">#book #publicationYear &gt;= 1950 #publicationYear &lt; 1960</code>:
- Use numeric operators to find all books published in the 1950s.</li>
- <li
- ><code spellcheck="false">#dateNote &gt;= TODAY-30</code>: Find notes with
- the "dateNote" label within the last 30 days. Supported date values include
- NOW +- seconds, TODAY +- days, MONTH +- months, YEAR +- years.</li>
- <li
- ><code spellcheck="false">~author.title *=* Tolkien</code>: Find notes
- related to an author whose title contains "Tolkien".</li>
- <li><code spellcheck="false">#publicationYear %= '19[0-9]{2}'</code>: Use
- the '%=' operator to match a regular expression (regex). This feature has
- been available since Trilium 0.52.</li>
- <li><code spellcheck="false">note.content %= '\\d{2}:\\d{2} (PM|AM)'</code>:
- Find notes that mention a time. Backslashes in a regex must be escaped.</li>
+ <li><code spellcheck="false">towers #!book</code>: Search for notes containing
+ "towers" and not having the "book" label.</li>
+ <li><code spellcheck="false">#book #publicationYear = 1954</code>: Find notes
+ with the "book" label and "publicationYear" set to 1954.</li>
+ <li><code spellcheck="false">#genre *=* fan</code>: Find notes with the "genre"
+ label containing the substring "fan". Additional operators include
+ <code
+ spellcheck="false">*=*</code>for "contains", <code spellcheck="false">=*</code> for "starts
+ with", <code spellcheck="false">*=</code> for "ends with", and <code spellcheck="false">!=</code> for
+ "is not equal to".</li>
+ <li><code spellcheck="false">#book #publicationYear &gt;= 1950 #publicationYear &lt; 1960</code>:
+ Use numeric operators to find all books published in the 1950s.</li>
+ <li><code spellcheck="false">#dateNote &gt;= TODAY-30</code>: Find notes with
+ the "dateNote" label within the last 30 days. Supported date values include
+ NOW +- seconds, TODAY +- days, MONTH +- months, YEAR +- years.</li>
+ <li><code spellcheck="false">~author.title *=* Tolkien</code>: Find notes
+ related to an author whose title contains "Tolkien".</li>
+ <li><code spellcheck="false">#publicationYear %= '19[0-9]{2}'</code>: Use
+ the '%=' operator to match a regular expression (regex). This feature has
+ been available since Trilium 0.52.</li>
+ <li><code spellcheck="false">note.content %= '\\d{2}:\\d{2} (PM|AM)'</code>:
+ Find notes that mention a time. Backslashes in a regex must be escaped.</li>
</ul>
<h3>Fuzzy Search</h3>
<p>Trilium supports fuzzy search operators that find results with typos or
@@ -177,12 +168,10 @@
</p>
<ul>
<li>Fuzzy search requires at least 3 characters in the search term</li>
- <li
- >Maximum edit distance is 2 characters (number of character changes needed)</li>
- <li
- >Diacritics are normalized (e.g., "café" matches "cafe")</li>
- <li>Fuzzy matches work best for finding content with minor typos or spelling
- variations</li>
+ <li>Maximum edit distance is 2 characters (number of character changes needed)</li>
+ <li>Diacritics are normalized (e.g., "café" matches "cafe")</li>
+ <li>Fuzzy matches work best for finding content with minor typos or spelling
+ variations</li>
</ul>
<h3>Advanced Use Cases</h3>
<ul>
@@ -283,13 +272,11 @@
<h3>Progressive Search Behavior</h3>
<ul>
<li><strong>Speed</strong>: Most searches complete using only exact matching</li>
- <li
- ><strong>Ordering</strong>: Exact matches appear before fuzzy matches</li>
- <li
- ><strong>Fallback</strong>: Fuzzy matching activates when exact matches
- return fewer than 5 results</li>
- <li><strong>Identification</strong>: Results indicate whether they are exact
- or fuzzy matches</li>
+ <li><strong>Ordering</strong>: Exact matches appear before fuzzy matches</li>
+ <li><strong>Fallback</strong>: Fuzzy matching activates when exact matches
+ return fewer than 5 results</li>
+ <li><strong>Identification</strong>: Results indicate whether they are exact
+ or fuzzy matches</li>
</ul>
<h3>Search Performance</h3>
<p>Search system specifications:</p>
@@ -337,43 +324,42 @@
</p>
<h2>Search Configuration</h2>
<h3>Parameters</h3>
-<figure class="table">
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Value</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code spellcheck="false">MIN_FUZZY_TOKEN_LENGTH</code>
- </td>
- <td>3</td>
- <td>Minimum characters for fuzzy matching</td>
- </tr>
- <tr>
- <td><code spellcheck="false">MAX_EDIT_DISTANCE</code>
- </td>
- <td>2</td>
- <td>Maximum character changes allowed</td>
- </tr>
- <tr>
- <td><code spellcheck="false">RESULT_SUFFICIENCY_THRESHOLD</code>
- </td>
- <td>5</td>
- <td>Minimum exact results before fuzzy fallback</td>
- </tr>
- <tr>
- <td><code spellcheck="false">MAX_CONTENT_SIZE</code>
- </td>
- <td>10MB</td>
- <td>Maximum note content size for search processing</td>
- </tr>
- </tbody>
- </table>
-</figure>
+<table>
+ <thead>
+ <tr>
+ <th>Parameter</th>
+ <th>Value</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code spellcheck="false">MIN_FUZZY_TOKEN_LENGTH</code>
+ </td>
+ <td>3</td>
+ <td>Minimum characters for fuzzy matching</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">MAX_EDIT_DISTANCE</code>
+ </td>
+ <td>2</td>
+ <td>Maximum character changes allowed</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">RESULT_SUFFICIENCY_THRESHOLD</code>
+ </td>
+ <td>5</td>
+ <td>Minimum exact results before fuzzy fallback</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">MAX_CONTENT_SIZE</code>
+ </td>
+ <td>10MB</td>
+ <td>Maximum note content size for search processing</td>
+ </tr>
+ </tbody>
+</table>
+
<h3>Limits</h3>
<ul>
<li>Searched note content is limited to 10MB per note to prevent performance
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Read-Only Notes.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Read-Only Notes.html
index 6536535e16..173e51d2fa 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Read-Only Notes.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Read-Only Notes.html
@@ -13,7 +13,7 @@
the automatic read-only mode will trigger in&nbsp;<a class="reference-link"
href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;by going to the options for&nbsp;
<a
- class="reference-link" href="#root/_hidden/_options/_help__optionsTextNotes">Text Notes</a>&nbsp;and&nbsp;<a class="reference-link" href="#root/_hidden/_options/_help__optionsCodeNotes">Code Notes</a>.</p>
+ class="reference-link" href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a>&nbsp;and&nbsp;<a class="reference-link" href="#root/_hidden/_options/_optionsCodeNotes">Code Notes</a>.</p>
<h2>Changing a note's read-only behavior</h2>
<p>Via the&nbsp;<a class="reference-link" href="#root/_help_BlN9DFI679QC">Ribbon</a>,
by going to the <em>Basic Properties</em> tab and looking for the <em>Editable</em> selection.
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.html
index 9b54288bef..36d7023c28 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.html
@@ -1,4 +1,4 @@
-<p>In the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a>,
+<p>In the&nbsp;<a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>,
it's possible to select multiple notes at one time. This won't affect the
currently displayed note, but it allows to do batch operations.</p>
<h2>Types of multiple selection</h2>
@@ -7,8 +7,8 @@
width="335" height="306">
</figure>
<h3>Selecting notes one by one</h3>
-<p>To individually select each note, press the <kbd spellcheck="false">Alt</kbd> key
- and click on the note to be selected.</p>
+<p>To individually select each note, press the <kbd>Alt</kbd> key and click
+ on the note to be selected.</p>
<p>The selected notes will be indicated via a different background color
and an icon.</p>
<h3>Selecting notes in a sequence</h3>
@@ -19,29 +19,27 @@
<p>When notes are in a sequence (e.g. one underneath the other), the entire
selection can be made just by selecting the first and the last item instead
of individually clicking all the notes.</p>
-<p>To do so, first select the note to start the selection with. Then hold
- <kbd
- spellcheck="false">Shift</kbd>and click on the note to end the selection with. All the notes
- between the start and the end note will be selected as well.</p>
+<p>To do so, first select the note to start the selection with. Then hold <kbd>Shift</kbd> and
+ click on the note to end the selection with. All the notes between the
+ start and the end note will be selected as well.</p>
<h2>Selected notes vs. active note</h2>
<p>There is a distinction between <em>selected notes</em> and the <em>active note</em>:</p>
<ul>
<li><em>Selected notes</em> are simply the notes that were selected in the
- multiple section process (i.e. either via <kbd spellcheck="false">Alt</kbd> or
- <kbd
- spellcheck="false">Shift</kbd>).</li>
+ multiple section process (i.e. either via <kbd>Alt</kbd> or <kbd>Shift</kbd>).</li>
<li>The <em>active note</em> is simply the note that whose content is being
displayed to the right of the tree.
<ul>
- <li>Visually, it's identified in the tree by having a different background
- color and a subtle shadow.</li>
+ <li>
+ <p>Visually, it's identified in the tree by having a different background
+ color and a subtle shadow.</p>
+ </li>
<li>
<p>The active note can also be selected case in which the icon and background
will also change:</p>
- <p>
- <img class="image_resized" style="aspect-ratio:317/223;width:35.1%;" src="2_Multiple selection_image.png"
- width="317" height="223">
- </p>
+ <img class="image_resized" style="aspect-ratio:317/223;width:35.1%;"
+ src="2_Multiple selection_image.png"
+ width="317" height="223">
</li>
</ul>
</li>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Options.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Options.html
index 8c49439ec8..e142b9ed3c 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Options.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Options.html
@@ -13,7 +13,7 @@
can optionally be hidden if not desirable.</li>
<li>Optionally, a keyboard shortcut can be defined, but it is not assigned
by default.</li>
- <li>By clicking on this link:&nbsp;<a class="reference-link" href="#root/_hidden/_help__options">Options</a>.</li>
+ <li>By clicking on this link:&nbsp;<a class="reference-link" href="#root/_hidden/_options">Options</a>.</li>
</ul>
<p>Once in the options section, simply select one of the option categories
using the&nbsp;<a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>.</p>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.html
index e23f83d729..24d2607eec 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Ribbon.html
@@ -88,4 +88,4 @@
shows the notes that were edited that day.</p>
<p>It is possible to disable this behavior from settings, by going to&nbsp;
<a
- class="reference-link" href="#root/_hidden/_options/_help__optionsAppearance">Appearance</a>&nbsp;settings and looking for the <em>Ribbon widgets</em> section.</p>
\ No newline at end of file
+ class="reference-link" href="#root/_hidden/_options/_optionsAppearance">Appearance</a>&nbsp;settings and looking for the <em>Ribbon widgets</em> section.</p>
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Formatting toolbar.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Formatting toolbar.html
index 72e18f740b..460d391f08 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Formatting toolbar.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Formatting toolbar.html
@@ -3,7 +3,7 @@
<p>The type of formatting toolbar can be changed by going to&nbsp;<a class="reference-link"
href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;and then looking for the&nbsp;
<a
- class="reference-link" href="#root/_options/_help__optionsTextNotes">Text Notes</a>&nbsp;section. In it, look for the <em>Formatting toolbar</em> category.</p>
+ class="reference-link" href="#root/_options/_optionsTextNotes">Text Notes</a>&nbsp;section. In it, look for the <em>Formatting toolbar</em> category.</p>
<h2>Floating</h2>
<p>The floating bar is a more minimalist option, in which the formatting
is hidden behind two different popups.</p>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Highlights list.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Highlights list.html
index 24b3789cba..3562c99bc5 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Highlights list.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Highlights list.html
@@ -24,7 +24,7 @@
<h2>Global configuration</h2>
<p>It's possible to toggle the display of each category of highlighted text
(as defined above) in the highlights list by going to&nbsp;<a class="reference-link"
- href="#root/_hidden/_options/_help__optionsTextNotes">Text Notes</a>&nbsp;settings
+ href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a>&nbsp;settings
and looking for the <em>Highlights List</em> section.</p>
<h2>Per-note configuration</h2>
<p>To suppress the display of highlighted text for one specific note, use&nbsp;
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Table of contents.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Table of contents.html
index 3c25dad8e7..8a961362f7 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Table of contents.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Table of contents.html
@@ -12,7 +12,7 @@
be shown again from the&nbsp;<a class="reference-link" href="#root/_help_XpOYSgsLkTJy">Floating buttons</a>&nbsp;section.</li>
</ul>
<h2>Global configuration</h2>
-<p>In&nbsp;<a class="reference-link" href="#root/_hidden/_options/_help__optionsTextNotes">Text Notes</a>&nbsp;options,
+<p>In&nbsp;<a class="reference-link" href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a>&nbsp;options,
look for the <em>Table of Contents</em> section and configure the minimum
amount of headings that need to be present in the current note in order
for the table of contents to show:</p>
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index e3bccb3daa..2599d45696 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -2722,6 +2722,13 @@
"type": "text",
"mime": "text/html",
"attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "oPVyFC7WL2Lp",
+ "isInheritable": false,
+ "position": 10
+ },
{
"type": "label",
"name": "iconClass",
@@ -2735,13 +2742,6 @@
"value": "multiple-selection",
"isInheritable": false,
"position": 30
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "oPVyFC7WL2Lp",
- "isInheritable": false,
- "position": 40
}
],
"format": "markdown",
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.md
index ff66b9993a..fd0b852440 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note Tree/Multiple selection.md
@@ -7,7 +7,7 @@ In the <a class="reference-link" href="../Note%20Tree.md">Note Tree</a>, it's p
### Selecting notes one by one
-To individually select each note, press the <kbd spellcheck="false">Alt</kbd> key and click on the note to be selected.
+To individually select each note, press the <kbd>Alt</kbd> key and click on the note to be selected.
The selected notes will be indicated via a different background color and an icon.
@@ -17,13 +17,13 @@ The selected notes will be indicated via a different background color and an ico
When notes are in a sequence (e.g. one underneath the other), the entire selection can be made just by selecting the first and the last item instead of individually clicking all the notes.
-To do so, first select the note to start the selection with. Then hold <kbd spellcheck="false">Shift</kbd> and click on the note to end the selection with. All the notes between the start and the end note will be selected as well.
+To do so, first select the note to start the selection with. Then hold <kbd>Shift</kbd> and click on the note to end the selection with. All the notes between the start and the end note will be selected as well.
## Selected notes vs. active note
There is a distinction between _selected notes_ and the _active note_:
-* _Selected notes_ are simply the notes that were selected in the multiple section process (i.e. either via <kbd spellcheck="false">Alt</kbd> or <kbd spellcheck="false">Shift</kbd>).
+* _Selected notes_ are simply the notes that were selected in the multiple section process (i.e. either via <kbd>Alt</kbd> or <kbd>Shift</kbd>).
* The _active note_ is simply the note that whose content is being displayed to the right of the tree.
* Visually, it's identified in the tree by having a different background color and a subtle shadow.
* The active note can also be selected case in which the icon and background will also change: