Skip to content

Build your personal knowledge base with Trilium Notes

fix(print): text notes would override custom font

Elian Dorana617b597656a
diff --git a/apps/client/src/print.css b/apps/client/src/print.css
index d0123c810e..b08ae29c36 100644
--- a/apps/client/src/print.css
+++ b/apps/client/src/print.css
@@ -1,8 +1,8 @@
@import "boxicons/css/boxicons.min.css";
:root {
+ --print-font-family: sans-serif;
--print-font-size: 11pt;
- --ck-content-color-image-caption-background: transparent !important;
}
@page {
@@ -14,6 +14,7 @@ body {
width: 100%;
height: 100%;
color: black;
+ font-family: var(--print-font-family);
}
.note-list-widget.full-height,
@@ -26,6 +27,12 @@ body {
}
body[data-note-type="text"] .ck-content {
+ --ck-content-font-family: var(--print-font-family);
+ --ck-content-font-size: var(--print-font-size);
+ --ck-content-font-color: black;
+ --ck-content-line-height: 1.5;
+ --ck-content-color-image-caption-background: transparent;
+
font-size: var(--print-font-size);
text-align: justify;
}
@@ -154,4 +161,4 @@ span[style] {
.page-break::after {
display: none !important;
}
-/* #endregion */
\ No newline at end of file
+/* #endregion */
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.html
index 3083d72a84..cae0118ea7 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.html
@@ -61,7 +61,8 @@ class="admonition note">
<ul>
<li>To print in landscape mode instead of portrait (useful for big diagrams
or slides), add <code spellcheck="false">#printLandscape</code>.</li>
- <li>By default, the resulting PDF will be in Letter format. It is possible
+ <li
+ >By default, the resulting PDF will be in Letter format. It is possible
to adjust it to another page size via the <code spellcheck="false">#printPageSize</code> attribute,
with one of the following values: <code spellcheck="false">A0</code>,
<code
@@ -83,7 +84,8 @@ class="admonition note">
<ol>
<li>First create a collection.</li>
<li>Configure it to use&nbsp;<a class="reference-link" href="#root/_help_mULW0Q3VojwY">List View</a>.</li>
- <li>Print the collection note normally.</li>
+ <li
+ >Print the collection note normally.</li>
</ol>
<p>The resulting collection will contain all the children of the collection,
while maintaining the hierarchy.</p>
@@ -100,9 +102,9 @@ class="admonition note">
href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;and assigning a key combination
for:</p>
<ul>
- <li><em>Print Active Note</em>
+ <li class="ck-list-marker-italic"><em>Print Active Note</em>
</li>
- <li><em>Export Active Note as PDF</em>
+ <li class="ck-list-marker-italic"><em>Export Active Note as PDF</em>
</li>
</ul>
<h2>Constraints &amp; limitations</h2>
@@ -165,19 +167,20 @@ class="admonition note">
class="reference-link" href="#root/_help_KC1HB96bqqHX">Templates</a>.</li>
</ul>
<p>For example, to change the font of the document from the one defined by
- the theme or the user to a serif one:</p><pre><code class="language-text-x-trilium-auto">body {
- --main-font-family: serif !important;
- --detail-font-family: var(--main-font-family) !important;
+ the theme or the user to a serif one:</p><pre><code class="language-text-x-trilium-auto">:root {
+ --print-font-family: serif;
+ --print-font-size: 11pt;
}</code></pre>
<p>To remark:</p>
<ul>
<li>Multiple CSS notes can be add by using multiple <code spellcheck="false">~printCss</code> relations.</li>
- <li>If the note pointing to the <code spellcheck="false">printCss</code> doesn't
+ <li
+ >If the note pointing to the <code spellcheck="false">printCss</code> doesn't
have the right note type or mime type, it will be ignored.</li>
- <li>If migrating from a previous version where&nbsp;<a class="reference-link"
- href="#root/_help_AlhDUqhENtH7">Custom app-wide CSS</a>, there's no need for
- <code
- spellcheck="false">@media print {</code> since the style-sheet is used only for printing.</li>
+ <li>If migrating from a previous version where&nbsp;<a class="reference-link"
+ href="#root/_help_AlhDUqhENtH7">Custom app-wide CSS</a>, there's no need for
+ <code
+ spellcheck="false">@media print {</code> since the style-sheet is used only for printing.</li>
</ul>
<h2>Under the hood</h2>
<p>Both printing and exporting as PDF use the same mechanism: a note is rendered
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note types with split view.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note types with split view.html
index 0f3b39ee11..605062dcaa 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note types with split view.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Note types with split view.html
@@ -1,8 +1,8 @@
-<p>Split view is a feature of&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_s1aBHPd79XYj">Mermaid Diagrams</a>&nbsp;and&nbsp;
+<p>Split view is a feature of&nbsp;<a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>&nbsp;and&nbsp;
<a
- class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_6RM1Q7ppFVoj">Markdown</a>&nbsp;notes which displays both the source code on one side
+ class="reference-link" href="#root/_help_6RM1Q7ppFVoj">Markdown</a>&nbsp;notes which displays both the source code on one side
and the preview of the content on the other.</p>
-<p><a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_s1aBHPd79XYj">Mermaid Diagrams</a>&nbsp;also
+<p><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>&nbsp;also
allow changing between a horizontal or a vertical split, to accommodate
for the various sizes of diagrams.</p>
<h2>Display modes and interaction</h2>
@@ -20,12 +20,12 @@
<li><em>Preview</em> which displays only the rendering of the diagram or text
in full screen, especially useful for read-only notes.</li>
</ul>
-<p>These buttons can be found near the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_8YBEPzcpUgxw">Note buttons</a>&nbsp;section
- on the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_IjZS7iK5EXtb">New Layout</a>,
- or in the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_XpOYSgsLkTJy">Floating buttons</a>&nbsp;on
+<p>These buttons can be found near the&nbsp;<a class="reference-link" href="#root/_help_8YBEPzcpUgxw">Note buttons</a>&nbsp;section
+ on the&nbsp;<a class="reference-link" href="#root/_help_IjZS7iK5EXtb">New Layout</a>,
+ or in the&nbsp;<a class="reference-link" href="#root/_help_XpOYSgsLkTJy">Floating buttons</a>&nbsp;on
the old layout.</p>
<p>The display node is stored at note level.</p>
<h2>Relation to read-only notes</h2>
-<p>If a note is marked as <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/BFs8mudNFgCS/_help_CoFPLs3dRlXc">read-only</a>,
- the source view will not be editable. While in preview mode, marking a
- note as read-only has no effect since the preview itself is not editable.</p>
\ No newline at end of file
+<p>If a note is marked as <a href="#root/_help_CoFPLs3dRlXc">read-only</a>, the
+ source view will not be editable. While in preview mode, marking a note
+ as read-only has no effect since the preview itself is not editable.</p>
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html
index fbd042717a..ecd52a4302 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html
@@ -70,6 +70,21 @@
this:</p><pre><code class="language-text-x-trilium-auto">TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data trilium</code></pre>
<p>You can then save the above command as a shell script on your path for
convenience.</p>
+<h2>Electron user data directory (desktop only)</h2>
+<p>When running the desktop application, Electron stores internal data (caches,
+ spell-check dictionaries, session storage, etc.) separately from the Trilium
+ data directory. By default this goes to the system's application data folder
+ (e.g. <code spellcheck="false">%APPDATA%</code> on Windows), which may be
+ undesirable in corporate environments with roaming profiles or when running
+ in portable mode.</p>
+<p>When <code spellcheck="false">TRILIUM_DATA_DIR</code> is set (e.g. via the
+ <code
+ spellcheck="false">trilium-portable</code>script), the Electron user data is automatically
+ redirected into <code spellcheck="false">${TRILIUM_DATA_DIR}/electron-user-data/</code>,
+ so no files are written to the system's roaming profile.</p>
+<p>If you need to store the Electron data in a different location than the
+ Trilium data directory, you can set the <code spellcheck="false">TRILIUM_ELECTRON_DATA_DIR</code> environment
+ variable to an explicit path.</p>
<h2>Fine-grained directory/path location</h2>
<p>Apart from the data directory, some of the subdirectories of it can be
moved elsewhere by changing an environment variable:</p>
@@ -129,5 +144,13 @@
</td>
<td>Path to&nbsp;<a class="reference-link" href="#root/_help_Gzjqa934BdH4">Configuration (config.ini or environment variables)</a>&nbsp;file.</td>
</tr>
+ <tr>
+ <td><code spellcheck="false">TRILIUM_ELECTRON_DATA_DIR</code>
+ </td>
+ <td><code spellcheck="false">${TRILIUM_DATA_DIR}/electron-user-data</code> (portable)
+ or system appData (default)</td>
+ <td>Directory where Electron stores internal data such as caches and spell-check
+ dictionaries (desktop only).</td>
+ </tr>
</tbody>
</table>
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Desktop Installation.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Desktop Installation.html
index 40d7ddd89c..e1ea2fc9b7 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Desktop Installation.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Desktop Installation.html
@@ -23,7 +23,9 @@
<li><code spellcheck="false">trilium-portable</code>: Launches Trilium in
portable mode, where the <a href="#root/_help_tAassRL4RSQL">data directory</a> is
created within the application's directory, making it easy to move the
- entire setup.</li>
+ entire setup. Electron's internal data (caches, dictionaries, etc.) is
+ also stored within the data directory, so no files are written to the system's
+ roaming profile.</li>
<li><code spellcheck="false">trilium-safe-mode</code>: Boots Trilium in "safe
mode," disabling any startup scripts that might cause the application to
crash.</li>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html
index 2607200081..d468c589c9 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html
@@ -9,8 +9,7 @@
note where to place the new one and select:</p>
<ul>
<li><em>Insert note after</em>, to put the new note underneath the one selected.</li>
- <li
- ><em>Insert child note</em>, to insert the note as a child of the selected
+ <li><em>Insert child note</em>, to insert the note as a child of the selected
note.</li>
</ul>
<p>
@@ -21,8 +20,7 @@
<li>When adding a <a href="#root/_help_QEAPj01N5f7w">link</a> in a&nbsp;<a class="reference-link"
href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;note, type the desired title of
the new note and press Enter. Afterwards the type of the note will be asked.</li>
- <li
- >Similarly, when creating a new tab, type the desired title and press Enter.</li>
+ <li>Similarly, when creating a new tab, type the desired title and press Enter.</li>
</ul>
<h2>Changing the type of a note</h2>
<p>It is possible to change the type of a note after it has been created
@@ -32,96 +30,94 @@
edit the <a href="#root/_help_4FahAwuGTAwC">source of a note</a>.</p>
<h2>Supported note types</h2>
<p>The following note types are supported by Trilium:</p>
-<figure class="table">
- <table>
- <thead>
- <tr>
- <th>Note Type</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>
- </td>
- <td>The default note type, which allows for rich text formatting, images,
- admonitions and right-to-left support.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_6f9hih2hXXZk">Code</a>
- </td>
- <td>Uses a mono-space font and can be used to store larger chunks of code
- or plain text than a text note, and has better syntax highlighting.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_m523cpzocqaD">Saved Search</a>
- </td>
- <td>Stores the information about a search (the search text, criteria, etc.)
- for later use. Can be used for quick filtering of a large amount of notes,
- for example. The search can easily be triggered.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_iRwzGnHPzonm">Relation Map</a>
- </td>
- <td>Allows easy creation of notes and relations between them. Can be used
- for mainly relational data such as a family tree.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_bdUJEHsAPYQR">Note Map</a>
- </td>
- <td>Displays the relationships between the notes, whether via relations or
- their hierarchical structure.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_HcABDtFCkbFN">Render Note</a>
- </td>
- <td>Used in&nbsp;<a class="reference-link" href="#root/_help_CdNpE2pqjmI6">Scripting</a>,
- it displays the HTML content of another note. This allows displaying any
- kind of content, provided there is a script behind it to generate it.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a>
- </td>
- <td>Displays the children of the note either as a grid, a list, or for a more
- specialized case: a calendar.&nbsp;&nbsp;
- <br>
- <br>Generally useful for easy reading of short notes.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>
- </td>
- <td>Displays diagrams such as bar charts, flow charts, state diagrams, etc.
- Requires a bit of technical knowledge since the diagrams are written in
- a specialized format.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_grjYqerjn243">Canvas</a>
- </td>
- <td>Allows easy drawing of sketches, diagrams, handwritten content. Uses the
- same technology behind <a href="https://excalidraw.com">excalidraw.com</a>.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_1vHRoWCEjj0L">Web View</a>
- </td>
- <td>Displays the content of an external web page, similar to a browser.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_gBbsAeiuUxI5">Mind Map</a>
- </td>
- <td>Easy for brainstorming ideas, by placing them in a hierarchical layout.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_81SGnPGMk7Xc">Geo Map</a>
- </td>
- <td>Displays the children of the note as a geographical map, one use-case
- would be to plan vacations. It even has basic support for tracks. Notes
- can also be created from it.</td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_W8vYD3Q1zjCR">File</a>
- </td>
- <td>Represents an uploaded file such as PDFs, images, video or audio files.</td>
- </tr>
- </tbody>
- </table>
-</figure>
\ No newline at end of file
+<table>
+ <thead>
+ <tr>
+ <th>Note Type</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>
+ </td>
+ <td>The default note type, which allows for rich text formatting, images,
+ admonitions and right-to-left support.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_6f9hih2hXXZk">Code</a>
+ </td>
+ <td>Uses a mono-space font and can be used to store larger chunks of code
+ or plain text than a text note, and has better syntax highlighting.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_m523cpzocqaD">Saved Search</a>
+ </td>
+ <td>Stores the information about a search (the search text, criteria, etc.)
+ for later use. Can be used for quick filtering of a large amount of notes,
+ for example. The search can easily be triggered.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_iRwzGnHPzonm">Relation Map</a>
+ </td>
+ <td>Allows easy creation of notes and relations between them. Can be used
+ for mainly relational data such as a family tree.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_bdUJEHsAPYQR">Note Map</a>
+ </td>
+ <td>Displays the relationships between the notes, whether via relations or
+ their hierarchical structure.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_HcABDtFCkbFN">Render Note</a>
+ </td>
+ <td>Used in&nbsp;<a class="reference-link" href="#root/_help_CdNpE2pqjmI6">Scripting</a>,
+ it displays the HTML content of another note. This allows displaying any
+ kind of content, provided there is a script behind it to generate it.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a>
+ </td>
+ <td>Displays the children of the note either as a grid, a list, or for a more
+ specialized case: a calendar.&nbsp;&nbsp;
+ <br>
+ <br>Generally useful for easy reading of short notes.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>
+ </td>
+ <td>Displays diagrams such as bar charts, flow charts, state diagrams, etc.
+ Requires a bit of technical knowledge since the diagrams are written in
+ a specialized format.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_grjYqerjn243">Canvas</a>
+ </td>
+ <td>Allows easy drawing of sketches, diagrams, handwritten content. Uses the
+ same technology behind <a href="https://excalidraw.com">excalidraw.com</a>.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_1vHRoWCEjj0L">Web View</a>
+ </td>
+ <td>Displays the content of an external web page, similar to a browser.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_gBbsAeiuUxI5">Mind Map</a>
+ </td>
+ <td>Easy for brainstorming ideas, by placing them in a hierarchical layout.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_81SGnPGMk7Xc">Geo Map</a>
+ </td>
+ <td>Displays the children of the note as a geographical map, one use-case
+ would be to plan vacations. It even has basic support for tracks. Notes
+ can also be created from it.</td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_W8vYD3Q1zjCR">File</a>
+ </td>
+ <td>Represents an uploaded file such as PDFs, images, video or audio files.</td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File.html
index 152140d5ed..f64ba7eade 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File.html
@@ -5,8 +5,7 @@
create a <em>File</em> note type directly:</p>
<ul>
<li>Drag a file into the&nbsp;<a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>.</li>
- <li
- >Right click a note and select <em>Import into note</em> and point it to
+ <li>Right click a note and select <em>Import into note</em> and point it to
one of the supported files.</li>
</ul>
<h2>Supported file types</h2>
@@ -83,30 +82,28 @@
href="#root/_help_BlN9DFI679QC">Ribbon</a>.
<ul>
<li><em>Download</em>, which will download the file for local use.</li>
- <li
- ><em>Open</em>, will will open the file with the system-default application.</li>
- <li
- >Upload new revision to replace the file with a new one.</li>
+ <li><em>Open</em>, will will open the file with the system-default application.</li>
+ <li>Upload new revision to replace the file with a new one.</li>
</ul>
- </li>
- <li>It is <strong>not</strong> possible to change the note type of a <em>File</em> note.</li>
- <li
- >Convert into an <a href="#root/_help_0vhv7lsOLy82">attachment</a> from the <a href="#root/_help_8YBEPzcpUgxw">note menu</a>.</li>
+ </li>
+ <li>It is <strong>not</strong> possible to change the note type of a <em>File</em> note.</li>
+ <li>Convert into an <a href="#root/_help_0vhv7lsOLy82">attachment</a> from the <a href="#root/_help_8YBEPzcpUgxw">note menu</a>.</li>
</ul>
<h2>Relation with other notes</h2>
<ul>
<li>
<p>Files are also displayed in the&nbsp;<a class="reference-link" href="#root/_help_0ESUbbAxVnoK">Note List</a>&nbsp;based
on their type:</p>
- <p>
- <img class="image_resized" style="aspect-ratio:853/315;width:50%;" src="4_File_image.png"
- width="853" height="315">
- </p>
+ <img class="image_resized" style="aspect-ratio:853/315;width:50%;"
+ src="4_File_image.png" width="853" height="315">
+ </li>
+ <li>
+ <p>Non-image files can be embedded into text notes as read-only widgets via
+ the&nbsp;<a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>&nbsp;functionality.</p>
+ </li>
+ <li>
+ <p>Image files can be embedded into text notes like normal images via&nbsp;
+ <a
+ class="reference-link" href="#root/_help_0Ofbk1aSuVRu">Image references</a>.</p>
</li>
- <li>Non-image files can be embedded into text notes as read-only widgets via
- the&nbsp;<a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>&nbsp;functionality.</li>
- <li
- >Image files can be embedded into text notes like normal images via&nbsp;
- <a
- class="reference-link" href="#root/_help_0Ofbk1aSuVRu">Image references</a>.</li>
</ul>
\ No newline at end of file
diff --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.html
index 74cf113776..2d3d41e7f9 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
@@ -1,13 +1,12 @@
-<p>Trilium has always supported Markdown through its <a href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/mHbBMPDPkVV5/_help_Oau6X9rCuegd">import feature</a>,
+<p>Trilium has always supported Markdown through its <a href="#root/_help_Oau6X9rCuegd">import feature</a>,
however the file was either transformed to a&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a>&nbsp;note
- (converted to Trilium's internal HTML format) or saved as a&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_6f9hih2hXXZk">Code</a>&nbsp;note
+ href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;note (converted to Trilium's internal
+ HTML format) or saved as a&nbsp;<a class="reference-link" href="#root/_help_6f9hih2hXXZk">Code</a>&nbsp;note
with only syntax highlight.</p>
<p>This note type is a split view, meaning that both the source code and
a preview of the document are displayed side-by-side. See&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_SL5f1Auq7sVN">Note types with split view</a>&nbsp;for
- more information.</p>
+ href="#root/_help_SL5f1Auq7sVN">Note types with split view</a>&nbsp;for more
+ information.</p>
<h2>Rationale</h2>
<p>The goal of this note type is to fill a gap: rendering Markdown but not
altering its structure or its whitespace which would inevitably change
@@ -33,65 +32,53 @@
<p>The following features are supported by Trilium's Markdown format and
will show up in the preview pane:</p>
<ul>
- <li>All standard and GitHub-flavored syntax (basic formatting, tables, blockquotes)</li>
- <li
- >Code blocks with syntax highlight (e.g. <code spellcheck="false">```js</code>)
- and automatic syntax highlight</li>
- <li><a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_NwBbFdNZ9h7O">Block quotes &amp; admonitions</a>
- </li>
- <li><a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_YfYAtQBcfo5V">Math Equations</a>
- </li>
- <li><a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_s1aBHPd79XYj">Mermaid Diagrams</a>&nbsp;using
- <code
- spellcheck="false">```mermaid</code>
- </li>
- <li>
- <p><a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_nBAXQFj20hS1">Include Note</a>&nbsp;(no
- builtin Markdown syntax, but HTML syntax works just fine):</p><pre><code class="language-text-x-trilium-auto">&lt;section class="include-note" data-note-id="vJDjQm0VK8Na" data-box-size="expandable"&gt;
- &amp;nbsp;
+ <li>
+ <p>All standard and GitHub-flavored syntax (basic formatting, tables, blockquotes)</p>
+ </li>
+ <li>
+ <p>Code blocks with syntax highlight (e.g. <code spellcheck="false">&lt;!--CODE_BLOCK_1776493385878_0--&gt;mermaid</code>
+ </p>
+ </li>
+ <li>
+ <p><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>&nbsp;(no
+ builtin Markdown syntax, but HTML syntax works just fine):</p><pre><code class="language-text-x-trilium-auto">&lt;section class="include-note" data-note-id="vJDjQm0VK8Na" data-box-size="expandable"&gt;
+ &amp;nbsp;
&lt;/section&gt;n</code></pre>
- </li>
- <li>
- <p><a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/QEAPj01N5f7w/_help_hrZ1D00cLbal">Internal (reference) links</a>&nbsp;via
- its HTML syntax, or through a <em>Wikilinks</em>-like format (only&nbsp;
- <a
- class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/_help_m1lbrzyKDaRB">Note ID</a>):</p><pre><code class="language-text-x-trilium-auto">[[Hg8TS5ZOxti6]]</code></pre>
- </li>
+ </li>
+ <li>
+ <p><a class="reference-link" href="#root/_help_hrZ1D00cLbal">Internal (reference) links</a>&nbsp;via
+ its HTML syntax, or through a <em>Wikilinks</em>-like format (only&nbsp;
+ <a
+ class="reference-link" href="#root/_help_m1lbrzyKDaRB">Note ID</a>):</p><pre><code class="language-text-x-trilium-auto">[[Hg8TS5ZOxti6]]</code></pre>
+ </li>
</ul>
<h2>Creating Markdown notes</h2>
<p>There are two ways to create a Markdown note:</p>
<ol>
- <li>Create a new note (e.g. in the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a>)
+ <li>Create a new note (e.g. in the&nbsp;<a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>)
and select the type <em>Markdown</em>, just like all the other note types.</li>
- <li
- >Create a note of type&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_6f9hih2hXXZk">Code</a>&nbsp;and
- select as the language either <em>Markdown </em>or <em>GitHub-Flavored Markdown</em>.
+ <li>Create a note of type&nbsp;<a class="reference-link" href="#root/_help_6f9hih2hXXZk">Code</a>&nbsp;and
+ select as the language either <em>Markdown</em> or <em>GitHub-Flavored Markdown</em>.
This maintains compatibility with your existing notes prior to the introduction
of this feature.</li>
</ol>
<aside class="admonition note">
<p>There is no distinction between the new Markdown note type and code notes
of type Markdown; internally both are represented as&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_6f9hih2hXXZk">Code</a>&nbsp;notes
- with the proper MIME type (e.g. <code spellcheck="false">text/x-markdown</code>).</p>
+ href="#root/_help_6f9hih2hXXZk">Code</a>&nbsp;notes with the proper MIME type
+ (e.g. <code spellcheck="false">text/x-markdown</code>).</p>
</aside>
<h2>Import/export</h2>
<ul>
<li>
<p>By default, when importing a single Markdown file it automatically gets
- converted to a&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a>&nbsp;note.
+ converted to a&nbsp;<a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;note.
To avoid that and have it imported as a Markdown note instead:</p>
<ul>
- <li>
- <p>Right click the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a>&nbsp;and
- select <em>Import into note</em>.</p>
- </li>
- <li>
- <p>Select the file normally.</p>
- </li>
- <li>
- <p>Uncheck <em>Import HTML, Markdown and TXT as text notes if it's unclear from the metadata</em>.</p>
- </li>
+ <li>Right click the&nbsp;<a class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>&nbsp;and
+ select <em>Import into note</em>.</li>
+ <li>Select the file normally.</li>
+ <li>Uncheck <em>Import HTML, Markdown and TXT as text notes if it's unclear from the metadata</em>.</li>
</ul>
</li>
<li>
@@ -105,9 +92,8 @@
</ul>
<h2>Conversion between text notes and Markdown notes</h2>
<p>Currently there is no built-in functionality to convert a&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a>&nbsp;note
- into a Markdown note or vice-versa. We do have plans to address this in
- the future.</p>
+ href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;note into a Markdown note or vice-versa.
+ We do have plans to address this in the future.</p>
<p>This can be achieved manually, for a single note:</p>
<ol>
<li>Export the file as Markdown, with single format.</li>
@@ -135,6 +121,6 @@
<p>This feature of synchronizing the scroll is based on blocks but it's provided
on a best-effort basis since our underlying Markdown library doesn't support
this feature natively, so we had to implement our own algorithm. Feel free
- to <a href="#root/pOsGYCXsbNQG/BgmBlOIl72jZ/_help_wy8So3yZZlH9">report issues</a>,
- but always provide a sample Markdown file to be able to reproduce it.</p>
+ to <a href="#root/_help_wy8So3yZZlH9">report issues</a>, but always provide a
+ sample Markdown file to be able to reproduce it.</p>
</aside>
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.html
index d6ff44cd93..a17a7ea0a8 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.html
@@ -12,8 +12,8 @@
the diagram.</p>
<p>This note type is a split view, meaning that both the source code and
a preview of the document are displayed side-by-side. See&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_SL5f1Auq7sVN">Note types with split view</a>&nbsp;for
- more information.</p>
+ href="#root/_help_SL5f1Auq7sVN">Note types with split view</a>&nbsp;for more
+ information.</p>
<h2>Sample diagrams</h2>
<p>Starting with v0.103.0, Mermaid diagrams no longer start with a sample
flowchart, but instead a pane at the bottom will show all the supported
@@ -52,34 +52,30 @@
<img src="1_Mermaid Diagrams_image.png">
</li>
<li>The preview can be moved around by holding the left mouse button and dragging.</li>
- <li
- >Zooming can also be done by using the scroll wheel.</li>
- <li>The zoom and position on the preview will remain fixed as the diagram
- changes, to be able to work more easily with large diagrams.</li>
- </ul>
+ <li>Zooming can also be done by using the scroll wheel.</li>
+ <li>The zoom and position on the preview will remain fixed as the diagram
+ changes, to be able to work more easily with large diagrams.</li>
+ </ul>
</li>
<li>The size of the source/preview panes can be adjusted by hovering over
the border between them and dragging it with the mouse.</li>
<li>In the&nbsp;<a class="reference-link" href="#root/_help_XpOYSgsLkTJy">Floating buttons</a>&nbsp;area:
<ul>
<li>The source/preview can be laid out left-right or bottom-top via the <em>Move editing pane to the left / bottom</em> option.</li>
- <li
- >Press <em>Lock editing</em> to automatically mark the note as read-only.
+ <li>Press <em>Lock editing</em> to automatically mark the note as read-only.
In this mode, the code pane is hidden and the diagram is displayed full-size.
Similarly, press <em>Unlock editing</em> to mark a read-only note as editable.</li>
- <li
- >Press the <em>Copy image reference to the clipboard</em> to be able to insert
- the image representation of the diagram into a text note. See&nbsp;<a class="reference-link"
- href="#root/_help_0Ofbk1aSuVRu">Image references</a>&nbsp;for more information.</li>
- <li
- >Press the <em>Export diagram as SVG</em> to download a scalable/vector rendering
- of the diagram. Can be used to present the diagram without degrading when
- zooming.</li>
+ <li>Press the <em>Copy image reference to the clipboard</em> to be able to insert
+ the image representation of the diagram into a text note. See&nbsp;<a class="reference-link"
+ href="#root/_help_0Ofbk1aSuVRu">Image references</a>&nbsp;for more information.</li>
+ <li>Press the <em>Export diagram as SVG</em> to download a scalable/vector rendering
+ of the diagram. Can be used to present the diagram without degrading when
+ zooming.</li>
<li>Press the <em>Export diagram as PNG</em> to download a normal image (at
1x scale, raster) of the diagram. Can be used to send the diagram in more
traditional channels such as e-mail.</li>
- </ul>
- </li>
+ </ul>
+ </li>
</ul>
<h2>Errors in the diagram</h2>
<p>If there is an error in the source code, the error will be displayed in
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html
index 4a33c30bfe..efff5c09b9 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html
@@ -13,13 +13,11 @@
<ol>
<li>HTML language for the legacy/vanilla method, with what needs to be displayed
(for example <code spellcheck="false">&lt;p&gt;Hello world.&lt;/p&gt;</code>).</li>
- <li
- >JSX for the Preact-based approach (see below).</li>
- </ol>
+ <li>JSX for the Preact-based approach (see below).</li>
+ </ol>
</li>
<li>Create a&nbsp;<a class="reference-link" href="#root/_help_HcABDtFCkbFN">Render Note</a>.</li>
- <li
- >Assign the <code spellcheck="false">renderNote</code> <a href="#root/_help_zEY4DaJG4YT5">relation</a> to
+ <li>Assign the <code spellcheck="false">renderNote</code> <a href="#root/_help_zEY4DaJG4YT5">relation</a> to
point at the previously created code note.</li>
</ol>
<h2>Legacy scripting using jQuery</h2>
@@ -48,9 +46,10 @@ $dateEl.text(new Date());</code></pre>
need to provide a HTML anymore.</p>
<p>Here are the steps to creating a simple render note:</p>
<ol>
- <li>Create a note of type&nbsp;<a class="reference-link" href="#root/_help_HcABDtFCkbFN">Render Note</a>.</li>
- <li
- >
+ <li>
+ <p>Create a note of type&nbsp;<a class="reference-link" href="#root/_help_HcABDtFCkbFN">Render Note</a>.</p>
+ </li>
+ <li>
<p>Create a child&nbsp;<a class="reference-link" href="#root/_help_6f9hih2hXXZk">Code</a>&nbsp;note
with JSX as the language.
<br>As an example, use the following content:</p><pre><code class="language-text-x-trilium-auto">export default function() {
@@ -60,17 +59,20 @@ $dateEl.text(new Date());</code></pre>
&lt;/&gt;
);
}</code></pre>
- </li>
- <li>In the parent render note, define a <code spellcheck="false">~renderNote</code> relation
- pointing to the newly created child.</li>
- <li>Refresh the render note and it should display a “Hello world” message.</li>
+ </li>
+ <li>
+ <p>In the parent render note, define a <code spellcheck="false">~renderNote</code> relation
+ pointing to the newly created child.</p>
+ </li>
+ <li>
+ <p>Refresh the render note and it should display a “Hello world” message.</p>
+ </li>
</ol>
<h2>Refreshing the note</h2>
<p>It's possible to refresh the note via:</p>
<ul>
<li>The corresponding button in&nbsp;<a class="reference-link" href="#root/_help_XpOYSgsLkTJy">Floating buttons</a>.</li>
- <li
- >The “Render active note” <a href="#root/_help_A9Oc6YKKc65v">keyboard shortcut</a> (not
+ <li>The “Render active note” <a href="#root/_help_A9Oc6YKKc65v">keyboard shortcut</a> (not
assigned by default).</li>
</ul>
<h2>Examples</h2>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html
index 06f944a848..b9ab252d4c 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html
@@ -64,9 +64,8 @@
yet:</p>
<ul>
<li>Trilium-specific formulas (e.g. to obtain the title of a note).</li>
- <li
- >User-defined formulas</li>
- <li>Cross-workbook calculation</li>
+ <li>User-defined formulas</li>
+ <li>Cross-workbook calculation</li>
</ul>
<p>If you would like us to work on these features, consider <a href="https://triliumnotes.org/en/support-us">supporting us</a>.</p>
<h2>Known limitations</h2>
@@ -81,8 +80,7 @@
</ul>
</li>
<li>There is currently no export functionality, as stated previously.</li>
- <li
- >There is no dedicated mobile support. Mobile support is currently experimental
+ <li>There is no dedicated mobile support. Mobile support is currently experimental
in Univer and when it becomes stable, we could potentially integrate it
into Trilium as well.</li>
</ul>
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html
index 26a0791ace..42dbe0fa44 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html
@@ -20,171 +20,168 @@
<p>Fore more information see&nbsp;<a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a>.</p>
<h2>Features and formatting</h2>
<p>Here's a list of various features supported by text notes:</p>
-<figure
-class="table">
- <table>
- <thead>
- <tr>
- <th>Dedicated article</th>
- <th>Feature</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><a class="reference-link" href="#root/_help_Gr6xFaF6ioJ5">General formatting</a>
- </td>
- <td>
- <ul>
- <li>Headings (section titles, paragraph)</li>
- <li>Font size</li>
- <li>Bold, italic, underline, strike-through</li>
- <li>Superscript, subscript</li>
- <li>Font color &amp; background color</li>
- <li>Remove formatting</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_S6Xx8QIWTV66">Lists</a>
- </td>
- <td>
- <ul>
- <li>Bulleted lists</li>
- <li>Numbered lists</li>
- <li>To-do lists</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes &amp; admonitions</a>
- </td>
- <td>
- <ul>
- <li>Block quotes</li>
- <li>Admonitions</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_NdowYOC1GFKS">Tables</a>
- </td>
- <td>
- <ul>
- <li>Basic tables</li>
- <li>Merging cells</li>
- <li>Styling tables and cells.</li>
- <li>Table captions</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_UYuUB1ZekNQU">Developer-specific formatting</a>
- </td>
- <td>
- <ul>
- <li>Inline code</li>
- <li>Code blocks</li>
- <li>Keyboard shortcuts</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_AgjCISero73a">Footnotes</a>
- </td>
- <td>
- <ul>
- <li>Footnotes</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_mT0HEkOsz6i1">Images</a>
- </td>
- <td>
- <ul>
- <li>Images</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_QEAPj01N5f7w">Links</a>
- </td>
- <td>
- <ul>
- <li>External links</li>
- <li>Internal Trilium links</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>
- </td>
- <td>
- <ul>
- <li>Include note</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_CohkqWQC1iBv">Insert buttons</a>
- </td>
- <td>
- <ul>
- <li>Symbols</li>
- <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a>
- </li>
- <li>Mermaid diagrams</li>
- <li>Horizontal ruler</li>
- <li>Page break</li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_dEHYtoWWi8ct">Other features</a>
- </td>
- <td>
- <ul>
- <li>Indentation
- <ul>
- <li>Markdown import</li>
- </ul>
- </li>
- <li><a class="reference-link" href="#root/_help_2x0ZAX9ePtzV">Cut to subnote</a>
- </li>
- </ul>
- </td>
- </tr>
- <tr>
- <td><a class="reference-link" href="#root/_help_gLt3vA97tMcp">Premium features</a>
- </td>
- <td>
- <ul>
- <li><a class="reference-link" href="#root/_help_ZlN4nump6EbW">Slash Commands</a>
- </li>
- <li><a class="reference-link" href="#root/_help_KC1HB96bqqHX">Templates</a>
- </li>
- <li><a class="reference-link" href="#root/_help_5wZallV2Qo1t">Format Painter</a>
- </li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- </figure>
- <h2>Read-Only vs. Editing Mode</h2>
- <p>Text notes are usually opened in edit mode. However, they may open in
- read-only mode if the note is too big or the note is explicitly marked
- as read-only. For more information, see&nbsp;<a class="reference-link"
- href="#root/_help_CoFPLs3dRlXc">Read-Only Notes</a>.</p>
- <h2>Keyboard shortcuts</h2>
- <p>There are numerous keyboard shortcuts to format the text without having
- to use the mouse. For a reference of all the key combinations, see&nbsp;
- <a
- class="reference-link" href="#root/_help_A9Oc6YKKc65v">Keyboard Shortcuts</a>. In addition, see&nbsp;<a class="reference-link"
- href="#root/_help_QrtTYPmdd1qq">Markdown-like formatting</a>&nbsp;as an alternative
- to the keyboard shortcuts.</p>
- <h2>Technical details</h2>
- <p>For the text editing functionality, Trilium uses a commercial product
- (with an open-source base) called&nbsp;<a class="reference-link" href="#root/_help_MI26XDLSAlCD">CKEditor</a>.
- This brings the benefit of having a powerful WYSIWYG (What You See Is What
- You Get) editor.</p>
\ No newline at end of file
+<table>
+ <thead>
+ <tr>
+ <th>Dedicated article</th>
+ <th>Feature</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_Gr6xFaF6ioJ5">General formatting</a>
+ </td>
+ <td>
+ <ul>
+ <li>Headings (section titles, paragraph)</li>
+ <li>Font size</li>
+ <li>Bold, italic, underline, strike-through</li>
+ <li>Superscript, subscript</li>
+ <li>Font color &amp; background color</li>
+ <li>Remove formatting</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_S6Xx8QIWTV66">Lists</a>
+ </td>
+ <td>
+ <ul>
+ <li>Bulleted lists</li>
+ <li>Numbered lists</li>
+ <li>To-do lists</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes &amp; admonitions</a>
+ </td>
+ <td>
+ <ul>
+ <li>Block quotes</li>
+ <li>Admonitions</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_NdowYOC1GFKS">Tables</a>
+ </td>
+ <td>
+ <ul>
+ <li>Basic tables</li>
+ <li>Merging cells</li>
+ <li>Styling tables and cells.</li>
+ <li>Table captions</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_UYuUB1ZekNQU">Developer-specific formatting</a>
+ </td>
+ <td>
+ <ul>
+ <li>Inline code</li>
+ <li>Code blocks</li>
+ <li>Keyboard shortcuts</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_AgjCISero73a">Footnotes</a>
+ </td>
+ <td>
+ <ul>
+ <li>Footnotes</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_mT0HEkOsz6i1">Images</a>
+ </td>
+ <td>
+ <ul>
+ <li>Images</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_QEAPj01N5f7w">Links</a>
+ </td>
+ <td>
+ <ul>
+ <li>External links</li>
+ <li>Internal Trilium links</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>
+ </td>
+ <td>
+ <ul>
+ <li>Include note</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_CohkqWQC1iBv">Insert buttons</a>
+ </td>
+ <td>
+ <ul>
+ <li>Symbols</li>
+ <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a>
+ </li>
+ <li>Mermaid diagrams</li>
+ <li>Horizontal ruler</li>
+ <li>Page break</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_dEHYtoWWi8ct">Other features</a>
+ </td>
+ <td>
+ <ul>
+ <li>Indentation
+ <ul>
+ <li>Markdown import</li>
+ </ul>
+ </li>
+ <li><a class="reference-link" href="#root/_help_2x0ZAX9ePtzV">Cut to subnote</a>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td><a class="reference-link" href="#root/_help_gLt3vA97tMcp">Premium features</a>
+ </td>
+ <td>
+ <ul>
+ <li><a class="reference-link" href="#root/_help_ZlN4nump6EbW">Slash Commands</a>
+ </li>
+ <li><a class="reference-link" href="#root/_help_KC1HB96bqqHX">Templates</a>
+ </li>
+ <li><a class="reference-link" href="#root/_help_5wZallV2Qo1t">Format Painter</a>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<h2>Read-Only vs. Editing Mode</h2>
+<p>Text notes are usually opened in edit mode. However, they may open in
+ read-only mode if the note is too big or the note is explicitly marked
+ as read-only. For more information, see&nbsp;<a class="reference-link"
+ href="#root/_help_CoFPLs3dRlXc">Read-Only Notes</a>.</p>
+<h2>Keyboard shortcuts</h2>
+<p>There are numerous keyboard shortcuts to format the text without having
+ to use the mouse. For a reference of all the key combinations, see&nbsp;
+ <a
+ class="reference-link" href="#root/_help_A9Oc6YKKc65v">Keyboard Shortcuts</a>. In addition, see&nbsp;<a class="reference-link"
+ href="#root/_help_QrtTYPmdd1qq">Markdown-like formatting</a>&nbsp;as an alternative
+ to the keyboard shortcuts.</p>
+<h2>Technical details</h2>
+<p>For the text editing functionality, Trilium uses a commercial product
+ (with an open-source base) called&nbsp;<a class="reference-link" href="#root/_help_MI26XDLSAlCD">CKEditor</a>.
+ This brings the benefit of having a powerful WYSIWYG (What You See Is What
+ You Get) editor.</p>
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.md
index aae807a49d..8b2fdc9998 100644
--- a/docs/Developer Guide/Developer Guide/Documentation.md
+++ b/docs/Developer Guide/Developer Guide/Documentation.md
@@ -1,5 +1,5 @@
# Documentation
-There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/1ysfcELr4Xua/Documentation_image.png" width="205" height="162">
+There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/flRan24HiJPq/Documentation_image.png" width="205" height="162">
* The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing <kbd>F1</kbd>.
* The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers.
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index d1b8f5d265..92af202232 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -3984,42 +3984,42 @@
"name": "internalLink",
"value": "s1aBHPd79XYj",
"isInheritable": false,
- "position": 30
+ "position": 10
},
{
"type": "relation",
"name": "internalLink",
"value": "6RM1Q7ppFVoj",
"isInheritable": false,
- "position": 40
+ "position": 20
},
{
"type": "relation",
"name": "internalLink",
- "value": "CoFPLs3dRlXc",
+ "value": "8YBEPzcpUgxw",
"isInheritable": false,
- "position": 50
+ "position": 30
},
{
"type": "relation",
"name": "internalLink",
- "value": "8YBEPzcpUgxw",
+ "value": "IjZS7iK5EXtb",
"isInheritable": false,
- "position": 60
+ "position": 40
},
{
"type": "relation",
"name": "internalLink",
- "value": "IjZS7iK5EXtb",
+ "value": "XpOYSgsLkTJy",
"isInheritable": false,
- "position": 70
+ "position": 50
},
{
"type": "relation",
"name": "internalLink",
- "value": "XpOYSgsLkTJy",
+ "value": "CoFPLs3dRlXc",
"isInheritable": false,
- "position": 80
+ "position": 60
},
{
"type": "label",
@@ -10147,17 +10147,24 @@
{
"type": "relation",
"name": "internalLink",
- "value": "XpOYSgsLkTJy",
+ "value": "SL5f1Auq7sVN",
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
- "value": "0Ofbk1aSuVRu",
+ "value": "XpOYSgsLkTJy",
"isInheritable": false,
"position": 30
},
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "0Ofbk1aSuVRu",
+ "isInheritable": false,
+ "position": 40
+ },
{
"type": "label",
"name": "shareAlias",
@@ -10171,13 +10178,6 @@
"value": "bx bx-selection",
"isInheritable": false,
"position": 20
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "SL5f1Auq7sVN",
- "isInheritable": false,
- "position": 40
}
],
"format": "markdown",
@@ -10839,103 +10839,82 @@
"type": "text",
"mime": "text/html",
"attributes": [
- {
- "type": "label",
- "name": "iconClass",
- "value": "bx bxl-markdown",
- "isInheritable": false,
- "position": 30
- },
- {
- "type": "label",
- "name": "shareAlias",
- "value": "markdown",
- "isInheritable": false,
- "position": 40
- },
{
"type": "relation",
"name": "internalLink",
"value": "Oau6X9rCuegd",
"isInheritable": false,
- "position": 50
+ "position": 10
},
{
"type": "relation",
"name": "internalLink",
"value": "iPIMuisry3hd",
"isInheritable": false,
- "position": 60
+ "position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "6f9hih2hXXZk",
"isInheritable": false,
- "position": 70
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "oPVyFC7WL2Lp",
- "isInheritable": false,
- "position": 80
+ "position": 30
},
{
"type": "relation",
"name": "internalLink",
- "value": "wy8So3yZZlH9",
+ "value": "SL5f1Auq7sVN",
"isInheritable": false,
- "position": 150
+ "position": 40
},
{
"type": "relation",
"name": "internalLink",
- "value": "SL5f1Auq7sVN",
+ "value": "nBAXQFj20hS1",
"isInheritable": false,
- "position": 160
+ "position": 50
},
{
"type": "relation",
"name": "internalLink",
- "value": "NwBbFdNZ9h7O",
+ "value": "hrZ1D00cLbal",
"isInheritable": false,
- "position": 170
+ "position": 60
},
{
"type": "relation",
"name": "internalLink",
- "value": "YfYAtQBcfo5V",
+ "value": "m1lbrzyKDaRB",
"isInheritable": false,
- "position": 180
+ "position": 70
},
{
"type": "relation",
"name": "internalLink",
- "value": "s1aBHPd79XYj",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
- "position": 190
+ "position": 80
},
{
"type": "relation",
"name": "internalLink",
- "value": "nBAXQFj20hS1",
+ "value": "wy8So3yZZlH9",
"isInheritable": false,
- "position": 200
+ "position": 90
},
{
- "type": "relation",
- "name": "internalLink",
- "value": "hrZ1D00cLbal",
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bxl-markdown",
"isInheritable": false,
- "position": 210
+ "position": 30
},
{
- "type": "relation",
- "name": "internalLink",
- "value": "m1lbrzyKDaRB",
+ "type": "label",
+ "name": "shareAlias",
+ "value": "markdown",
"isInheritable": false,
- "position": 220
+ "position": 40
}
],
"format": "markdown",
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.md b/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.md
index b110d09b03..221ba93c9a 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Printing & Exporting as PDF.md
@@ -99,9 +99,9 @@ To do so:
For example, to change the font of the document from the one defined by the theme or the user to a serif one:
```
-body {
- --main-font-family: serif !important;
- --detail-font-family: var(--main-font-family) !important;
+:root {
+ --print-font-family: serif;
+ --print-font-size: 11pt;
}
```
diff --git a/docs/User Guide/User Guide/Installation & Setup/Data directory.md b/docs/User Guide/User Guide/Installation & Setup/Data directory.md
index 3a447f82f2..b9df162b9e 100644
--- a/docs/User Guide/User Guide/Installation & Setup/Data directory.md
+++ b/docs/User Guide/User Guide/Installation & Setup/Data directory.md
@@ -97,4 +97,4 @@ Apart from the data directory, some of the subdirectories of it can be moved els
| `TRILIUM_TMP_DIR` | `${TRILIUM_DATA_DIR}/tmp` | Directory where temporary files are stored (for example when opening in an external app). |
| `TRILIUM_ANONYMIZED_DB_DIR` | `${TRILIUM_DATA_DIR}/anonymized-db` | Directory where a <a class="reference-link" href="../Troubleshooting/Anonymized%20Database.md">Anonymized Database</a> is stored. |
| `TRILIUM_CONFIG_INI_PATH` | `${TRILIUM_DATA_DIR}/config.ini` | Path to <a class="reference-link" href="../Advanced%20Usage/Configuration%20(config.ini%20or%20e.md">Configuration (config.ini or environment variables)</a> file. |
-| `TRILIUM_ELECTRON_DATA_DIR` | `${TRILIUM_DATA_DIR}/electron-user-data` (portable) or system appData (default) | Directory where Electron stores internal data such as caches and spell-check dictionaries (desktop only). |
+| `TRILIUM_ELECTRON_DATA_DIR` | `${TRILIUM_DATA_DIR}/electron-user-data` (portable) or system appData (default) | Directory where Electron stores internal data such as caches and spell-check dictionaries (desktop only). |
\ No newline at end of file
diff --git a/docs/User Guide/User Guide/Note Types/Markdown.md b/docs/User Guide/User Guide/Note Types/Markdown.md
index b96b627329..4913eb5f83 100644
--- a/docs/User Guide/User Guide/Note Types/Markdown.md
+++ b/docs/User Guide/User Guide/Note Types/Markdown.md
@@ -25,15 +25,12 @@ Even if Markdown is now specially treated by having a preview mechanism, Trilium
The following features are supported by Trilium's Markdown format and will show up in the preview pane:
* All standard and GitHub-flavored syntax (basic formatting, tables, blockquotes)
-* Code blocks with syntax highlight (e.g. ` ```js `) and automatic syntax highlight
-* <a class="reference-link" href="Text/Block%20quotes%20%26%20admonitions.md">Block quotes &amp; admonitions</a>
-* <a class="reference-link" href="Text/Math%20Equations.md">Math Equations</a>
-* <a class="reference-link" href="Mermaid%20Diagrams.md">Mermaid Diagrams</a> using ` ```mermaid `
+* Code blocks with syntax highlight (e.g. `<!--CODE_BLOCK_1776493385878_0-->mermaid`
* <a class="reference-link" href="Text/Include%20Note.md">Include Note</a> (no builtin Markdown syntax, but HTML syntax works just fine):
```
<section class="include-note" data-note-id="vJDjQm0VK8Na" data-box-size="expandable">
- &nbsp;
+ &nbsp;
</section>n
```
* <a class="reference-link" href="Text/Links/Internal%20(reference)%20links.md">Internal (reference) links</a> via its HTML syntax, or through a _Wikilinks_\-like format (only <a class="reference-link" href="../Advanced%20Usage/Note%20ID.md">Note ID</a>):