Skip to content

Build your personal knowledge base with Trilium Notes

docs(user): mention page breaks in Markdown

Elian Doran61ed531d5523
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 13eb6b40e1..af567c0961 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,65 +32,58 @@
<p>The following features are supported by Trilium's Markdown format and
will 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">&lt;details&gt;</code> and
- <code
- spellcheck="false">&lt;summary&gt;</code>).</p>
- </li>
- <li>
- <p>Code blocks with syntax highlight.</p>
- <ul>
- <li>The language must be specified for syntax highlight to be applied (e.g.
+ <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">&lt;details&gt;</code> and
+ <code
+ spellcheck="false">&lt;summary&gt;</code>).</li>
+ <li>Code blocks with syntax highlight.
+ <ul>
+ <li>The language must be specified for syntax highlight to be applied (e.g.
+ <code
+ spellcheck="false">```js</code>).</li>
+ <li>Code blocks will respect the text wrapping from the&nbsp;<a class="reference-link"
+ href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;section in&nbsp;<a class="reference-link"
+ href="#root/_help_4TIF1oA4VQRO">Options</a>.</li>
+ </ul>
+ </li>
+ <li><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes &amp; admonitions</a>
+ </li>
+ <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a>&nbsp;(both
+ inline and block)</li>
+ <li><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>&nbsp;using
<code
- spellcheck="false">```js</code>).</li>
- <li>Code blocks will respect the text wrapping from the&nbsp;<a class="reference-link"
- href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;section in&nbsp;<a class="reference-link"
- href="#root/_help_4TIF1oA4VQRO">Options</a>.</li>
- </ul>
- </li>
- <li>
- <p><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes &amp; admonitions</a>
- </p>
- </li>
- <li>
- <p><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a>&nbsp;(both
- inline and block)</p>
- </li>
- <li>
- <p><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>&nbsp;using
- <code
- spellcheck="false">```mermaid</code>
- </p>
- </li>
- <li>
- <p><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>&nbsp;(no
- built-in Markdown syntax, but HTML syntax works just fine):</p><pre><code class="language-text-html">&lt;section class="include-note" data-note-id="vJDjQm0VK8Na" data-box-size="expandable"&gt;
+ spellcheck="false">```mermaid</code>
+ </li>
+ <li>
+ <p><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>&nbsp;(no
+ built-in Markdown syntax, but HTML syntax works just fine):</p><pre><code class="language-text-html">&lt;section class="include-note" data-note-id="vJDjQm0VK8Na" data-box-size="expandable"&gt;
&amp;nbsp;
&lt;/section&gt;</code></pre>
- <ul>
- <li>These can also be quickly created via the <code spellcheck="false">/include</code> command
- or via a dedicated keyboard shortcut (not assigned by default).</li>
- </ul>
- </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>
- <li>
- <p><a class="reference-link" href="#root/_help_AgjCISero73a">Footnotes</a>&nbsp;are
- also supported via the corresponding Markdown syntax:</p><pre><code class="language-text-x-trilium-auto">This is [^1], while this is [^2].
+ <ul>
+ <li>These can also be quickly created via the <code spellcheck="false">/include</code> command
+ or via a dedicated keyboard shortcut (not assigned by default).</li>
+ </ul>
+ </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>
+ <li>
+ <p><a class="reference-link" href="#root/_help_AgjCISero73a">Footnotes</a>&nbsp;are
+ also supported via the corresponding Markdown syntax:</p><pre><code class="language-text-x-trilium-auto">This is [^1], while this is [^2].
[^1]: the first footnote
[^2]: the second footnote</code></pre>
- <ul>
- <li>These can also be quickly created using the <code spellcheck="false">/footnote</code> command.</li>
- </ul>
- </li>
+ <ul>
+ <li>These can also be quickly created using the <code spellcheck="false">/footnote</code> command.</li>
+ </ul>
+ </li>
+ <li>
+ <p>Page breaks for&nbsp;<a class="reference-link" href="#root/jdjRLhLV3TtI/yeqU0zo0ZQ83/_help_W0msUwLxm40d">Printing and exporting to PDF</a>:</p><pre><code class="language-text-x-trilium-auto">&lt;div class="page-break"&gt;&lt;/div&gt;</code></pre>
+ </li>
</ul>
<h3>Links</h3>
<p>Multiple types of links are supported:</p>
@@ -140,7 +133,8 @@
<li>Drag &amp; drop directly into the editor area.</li>
<li>Pasting an image from clipboard.</li>
<li>Pasting a reference to another <a href="#root/_help_0vhv7lsOLy82">attachment</a> (e.g. <em>Copy reference to clipboard</em> button).</li>
- <li>Use the <code spellcheck="false">/image</code> slash command.</li>
+ <li
+ >Use the <code spellcheck="false">/image</code> slash command.</li>
</ul>
<p>An image reference to an attachment looks like this:</p><pre><code class="language-text-x-trilium-auto">![Name.jpeg](api/attachments/z50RceuHXe9J/image/image)</code></pre>
<h3>Slash commands</h3>
@@ -148,8 +142,9 @@
Markdown notes support a selection of slash commands:</p>
<ul>
<li>Creating <a href="#root/_help_NwBbFdNZ9h7O">admonitions</a> (e.g. <code spellcheck="false">/tip</code>)</li>
- <li>Uploading images (<code spellcheck="false">/image</code>).</li>
- <li>Inserting the current date &amp; time (<code spellcheck="false">/date</code>).</li>
+ <li
+ >Uploading images (<code spellcheck="false">/image</code>).</li>
+ <li>Inserting the current date &amp; time (<code spellcheck="false">/date</code>).</li>
</ul>
<p>Note that slash commands only work outside of inline&nbsp;</p>
<h3>Other features</h3>
@@ -174,7 +169,8 @@
<ol>
<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/_help_6f9hih2hXXZk">Code</a>&nbsp;and
+ <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>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.html
index f265d77c05..8f49e8f70e 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.html
@@ -4,27 +4,26 @@
<p>A link preview can be displayed in one of three modes:</p>
<ul>
<li>
- <img class="image_resized" style="aspect-ratio:251/42;width:25%;" src="Link Previews_image.png"
- width="251" height="42"><strong><br>Inline </strong>— a pill showing the site's favicon and page
- title. Use this when you want the link to flow with the surrounding paragraph.</li>
- <li
- >
<p>
- <img class="image_resized" style="aspect-ratio:1217/196;width:61.28%;"
- src="2_Link Previews_image.png" width="1217" height="196">
- </p>
+ <img class="image_resized" style="aspect-ratio:251/42;width:25%;" src="Link Previews_image.png"
+ width="251" height="42"><strong>Inline</strong> — a pill showing the site's favicon and page title.
+ Use this when you want the link to flow with the surrounding paragraph.</p>
+ </li>
+ <li>
+ <img class="image_resized" style="aspect-ratio:1217/196;width:61.28%;"
+ src="2_Link Previews_image.png" width="1217"
+ height="196">
<p><strong>Card</strong> — a block-level preview with thumbnail, title, description,
and site name. Use this when the link is the focus of a paragraph.</p>
- </li>
- <li>
- <p>
- <img class="image_resized" style="aspect-ratio:994/563;width:49.28%;"
- src="1_Link Previews_image.png" width="994" height="563">
- </p>
- <p><strong>Embed</strong> — a block-level interactive embed. Currently supported
- for YouTube videos, which render as a playable iframe. For URLs that don't
- support an embedded view, this mode falls back to the Card layout.</p>
- </li>
+ </li>
+ <li>
+ <img class="image_resized" style="aspect-ratio:994/563;width:49.28%;"
+ src="1_Link Previews_image.png" width="994"
+ height="563">
+ <p><strong>Embed</strong> — a block-level interactive embed. Currently supported
+ for YouTube videos, which render as a playable iframe. For URLs that don't
+ support an embedded view, this mode falls back to the Card layout.</p>
+ </li>
</ul>
<h2>Inserting a link preview</h2>
<p>There are two ways to create one:</p>
@@ -72,9 +71,8 @@
<li>The Embed display mode currently only supports YouTube. Other video and
media platforms fall back to a Card preview.</li>
<li>The preview reflects the page at the moment you inserted the link.</li>
- <li
- >Pages that block automated fetches or that don't expose OpenGraph metadata
+ <li>Pages that block automated fetches or that don't expose OpenGraph metadata
may produce a minimal preview (hostname only).</li>
- <li>Link previews require the Trilium server to reach the target URL, so they
- won't generate previews for pages on networks the server can't see.</li>
+ <li>Link previews require the Trilium server to reach the target URL, so they
+ won't generate previews for pages on networks the server can't see.</li>
</ul>
\ 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 a9871cb007..0b6483efdc 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/DooPdhNGCC8F/Documentation_image.png" width="205" height="162">
+There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/9EFg0G8dUBHK/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/User Guide/Note Types/Markdown.md b/docs/User Guide/User Guide/Note Types/Markdown.md
index 4daed5739b..03f9d38da0 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 &amp; admonitions</a>
@@ -57,6 +56,11 @@ The following features are supported by Trilium's Markdown format and will show
```
* These can also be quickly created using the `/footnote` command.
+* Page breaks for <a class="reference-link" href="#root/jdjRLhLV3TtI/yeqU0zo0ZQ83/W0msUwLxm40d">Printing and exporting to PDF</a>:
+
+ ```
+ <div class="page-break"></div>
+ ```
### Links