Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs(user):: mention updates to images
Elian Doran90e2e5cd67e4
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.htmlindex 502a99a227..43c0470e28 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.html@@ -71,7 +71,7 @@<ul><li>The icon and image of the links need to be retrieved online since theexports don't carry the images. This operation is done only if <em>Download images automatically</em> is- enabled in <a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_4TIF1oA4VQRO">Options</a> → <em>Media</em>.</li>+ enabled in <a class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a> → <em>Media</em>.</li></ul></li><li><a class="reference-link" href="#root/_help_QxEyIjRBizuC">Code blocks</a>, with@@ -101,98 +101,96 @@of the original view the database was exported in. That's because the activeview is not saved in the export and the table collection is the most compatiblewith Notion.</p>-<figure class="table">- <table>- <thead>- <tr>- <th scope="col">Notion type</th>- <th scope="col">Trilium</th>- </tr>- </thead>- <tbody>- <tr>- <td>Text / Select / Status / Place</td>- <td>Single-valued <code spellcheck="false">text</code> label</td>- </tr>- <tr>- <td>Number</td>- <td>Single-valued <code spellcheck="false">number</code> label for plain numbers.- Formatted values (currency, percent, thousands separators) are normalized- to a bare number, e.g. <code spellcheck="false">$1,200.50</code> → <code spellcheck="false">1200.50</code>.</td>- </tr>- <tr>- <td>ID</td>- <td>Single-valued <code spellcheck="false">number</code> or <code spellcheck="false">text</code> label- (depending on whether a prefix is configured)</td>- </tr>- <tr>- <td>Multi-select</td>- <td>One text label per option (multi)</td>- </tr>- <tr>- <td>URL / Email / Phone</td>- <td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>,- <code- spellcheck="false">tel:</code>prefix)</td>- </tr>- <tr>- <td>Date</td>- <td>- <ul>- <li><code spellcheck="false">datetime</code> if at least one has time.</li>- <li><code spellcheck="false">date</code> if only dates.</li>- <li>Two attributes if any of the dates have an end date.</li>- </ul>- </td>- </tr>- <tr>- <td>Checkbox</td>- <td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/+<table>+ <thead>+ <tr>+ <th scope="col">Notion type</th>+ <th scope="col">Trilium</th>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td>Text / Select / Status / Place</td>+ <td>Single-valued <code spellcheck="false">text</code> label</td>+ </tr>+ <tr>+ <td>Number</td>+ <td>Single-valued <code spellcheck="false">number</code> label for plain numbers.+ Formatted values (currency, percent, thousands separators) are normalized+ to a bare number, e.g. <code spellcheck="false">$1,200.50</code> → <code spellcheck="false">1200.50</code>.</td>+ </tr>+ <tr>+ <td>ID</td>+ <td>Single-valued <code spellcheck="false">number</code> or <code spellcheck="false">text</code> label+ (depending on whether a prefix is configured)</td>+ </tr>+ <tr>+ <td>Multi-select</td>+ <td>One text label per option (multi)</td>+ </tr>+ <tr>+ <td>URL / Email / Phone</td>+ <td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>,+ <code+ spellcheck="false">tel:</code>prefix)</td>+ </tr>+ <tr>+ <td>Date</td>+ <td>+ <ul>+ <li><code spellcheck="false">datetime</code> if at least one has time.</li>+ <li><code spellcheck="false">date</code> if only dates.</li>+ <li>Two attributes if any of the dates have an end date.</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td>Checkbox</td>+ <td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/+ <code+ spellcheck="false">false</code>).</td>+ </tr>+ <tr>+ <td>Person</td>+ <td>One text label per user (multi)</td>+ </tr>+ <tr>+ <td>Created by / Edited by</td>+ <td>Single-valued <code spellcheck="false">text</code> label</td>+ </tr>+ <tr>+ <td>Created time / Last edited time</td>+ <td>Assigned to the note's creation and modification date.</td>+ </tr>+ <tr>+ <td>Relation</td>+ <td>Mapped to <a href="#root/_help_Cq5X6iKQop6R">relations</a>, each link resolved+ to its target note via the existing cross-page map; targets outside the+ import are dropped.</td>+ </tr>+ <tr>+ <td>Files & Media</td>+ <td>The files are preserved as attachments, and a link to them is prepended+ to the content of the note for visibility.</td>+ </tr>+ <tr>+ <td>Formulas / Rollup</td>+ <td>+ <p>A <code spellcheck="false">text</code>, <code spellcheck="false">number</code> or<code- spellcheck="false">false</code>).</td>- </tr>- <tr>- <td>Person</td>- <td>One text label per user (multi)</td>- </tr>- <tr>- <td>Created by / Edited by</td>- <td>Single-valued <code spellcheck="false">text</code> label</td>- </tr>- <tr>- <td>Created time / Last edited time</td>- <td>Assigned to the note's creation and modification date.</td>- </tr>- <tr>- <td>Relation</td>- <td>Mapped to <a href="#root/_help_Cq5X6iKQop6R">relations</a>, each link resolved- to its target note via the existing cross-page map; targets outside the- import are dropped.</td>- </tr>- <tr>- <td>Files & Media</td>- <td>The files are preserved as attachments, and a link to them is prepended- to the content of the note for visibility.</td>- </tr>- <tr>- <td>Formulas / Rollup</td>- <td>- <p>A <code spellcheck="false">text</code>, <code spellcheck="false">number</code> or+ spellcheck="false">boolean</code>label depending on the value. Dates are rendered as<code- spellcheck="false">boolean</code>label depending on the value. Dates are rendered as- <code- spellcheck="false">text</code>because the export doesn't offer any type information.</p>- <p>The Notion export does not preserve the formula/rollup configuration itself,- instead it just exports the value.</p>- </td>- </tr>- <tr>- <td>Button / Verification / any other type</td>- <td>Unsupported, they will be dropped from the import.</td>- </tr>- </tbody>- </table>-</figure>+ spellcheck="false">text</code>because the export doesn't offer any type information.</p>+ <p>The Notion export does not preserve the formula/rollup configuration itself,+ instead it just exports the value.</p>+ </td>+ </tr>+ <tr>+ <td>Button / Verification / any other type</td>+ <td>Unsupported, they will be dropped from the import.</td>+ </tr>+ </tbody>+</table><aside class="admonition note"><p><strong>Technical information</strong></p>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.htmlindex c630f73927..7afe67360d 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.html@@ -62,7 +62,7 @@<ul><li><p>The Markdown <code spellcheck="false">==</code> extension which is supported- by other Markdown-based applications such as Obsidian:</p><pre><code class="language-text-x-gfm">==highlighted==</code></pre>+ by other Markdown-based applications such as Obsidian:</p><pre><code class="language-text-x-trilium-auto">==highlighted==</code></pre></li><li><p>The canonical HTML representation of highlights, as supported by Trilium:</p><pre><code class="language-text-html"><span style="background-color:hsl(0,0%,100%);">Highlighted</span></code></pre>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Attachments.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Attachments.htmlindex 45c50ff5d1..88aff1e3be 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Attachments.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Notes/Attachments.html@@ -21,14 +21,14 @@<li><em>System attachments</em> which are used internally by Trilium and canbe of multiple types, including:<ul>- <li><a class="reference-link" href="#root/pOsGYCXsbNQG/_help_GTwFsgaA0lCt">Collections</a> to+ <li><a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a> tostore information about views such as the column information for the <a- class="reference-link" href="#root/pOsGYCXsbNQG/GTwFsgaA0lCt/_help_CtBQqbwXDx1w">Kanban Board</a>.</li>- <li>Icons and cover images for <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_UmgZAfcltxkS">Link Previews</a>.</li>+ class="reference-link" href="#root/_help_CtBQqbwXDx1w">Kanban Board</a>.</li>+ <li>Icons and cover images for <a class="reference-link" href="#root/_help_UmgZAfcltxkS">Link Previews</a>.</li><li>Debug information for some importers such as <a class="reference-link"- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/mHbBMPDPkVV5/ckZ2uNWQmVeX/_help_GnhlmrATVqcH">Microsoft OneNote</a> (only- if the debug flag was enabled at import time).</li>+ href="#root/_help_GnhlmrATVqcH">Microsoft OneNote</a> (only if the debug+ flag was enabled at import time).</li></ul></li></ul>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.htmlindex 694d577ca3..2204c36002 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@@ -128,7 +128,7 @@</li><li><p>Highlights (background color) are supported both via the <code spellcheck="false">==</code> Markdown- syntax, as well as the canonical HTML representation in Trilium:</p><pre><code class="language-text-x-gfm">==highlighted==+ syntax, as well as the canonical HTML representation in Trilium:</p><pre><code class="language-text-x-trilium-auto">==highlighted==<span style="background-color:hsl(0,0%,100%);">Highlighted</span></code></pre></li></ul>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/10_Images_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/10_Images_image.pngdeleted file mode 100644index 32f99c37cf..0000000000Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/10_Images_image.png and /dev/null differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/6_Images_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/6_Images_image.pngindex f8c5cf48fc..731df83bb9 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/6_Images_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/6_Images_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/7_Images_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/7_Images_image.pngindex 731df83bb9..8fa28fbf98 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/7_Images_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/7_Images_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/8_Images_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/8_Images_image.pngindex 0167e759ba..32f99c37cf 100644Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/8_Images_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/8_Images_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/9_Images_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/9_Images_image.pngdeleted file mode 100644index 8fa28fbf98..0000000000Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/9_Images_image.png and /dev/null differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.htmlindex 95d22d3225..5a78bc58da 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Images.html@@ -1,25 +1,50 @@<p>Trilium supports storing and displaying images. Supported formats are- JPEG, PNG and GIF.</p>+ PNG, JPEG, GIF, BMP, WebP, AVIF and SVG.</p><p>An image can be uploaded in the form of note's <a href="#root/_help_0vhv7lsOLy82">attachment</a> oras a standalone <a href="#root/_help_kBrnXNG3Hplm">note</a> placed into the <a href="#root/_help_kBrnXNG3Hplm">note tree</a>.Its reference can be copied into a text note, in order to display it inthe text itself.</p><h2>Uploading images</h2>-<p>To add an image to the note, simply drag it from file explorer onto the- note editor inside Trilium and the image will be uploaded.</p>-<p>- <img src="8_Images_image.png">+<p>To add an image to the note:</p>+<ul>+ <li>Simply drag it from file explorer onto the note editor inside Trilium+ and the image will be uploaded.</li>+ <li>Alternatively, from the <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/_help_nRhnJkTT8cPs">Formatting toolbar</a> look+ for the <em>Insert image</em> icon.</li>+ <li>You can also copy and paste an image from web (see section below).</li>+</ul>+<h2>Clipboard & automatic download of images</h2>+<p>Trilium has a special handling for images copied to and pasted from the+ clipboard.</p>+<ul>+ <li>+ <p>For a mix of text and images, the images are downloaded automatically+ by the server (or desktop app, depending on what is being used).</p>+ <ul>+ <li>+ <p>This means that the image must be publicly accessible and reachable from+ wherever Trilium is running. Inaccessible images will end up as broken+ images.</p>+ </li>+ </ul>+ </li>+ <li>+ <p>If a single image is pasted into Trilium, it will prefer the image that+ comes in the clipboard. This makes it possible to copy images that Trilium+ would not otherwise be able to reach, such as Google Chat, Slack, etc.</p>+ </li>+ <li>+ <p>When a text with images is copied from Trilium and pasted in another app+ (such as Microsoft Word or LibreOffice Writer), the images will be preserved.</p>+ </li>+</ul>+<p>The automatic download of images is enabled by default and can be toggled+ from <a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_4TIF1oA4VQRO">Options</a> → <em>Media</em> → <em>Download images automatically.</em></p>-<p>Alternatively you can click on block toolbar and then on "Insert image":</p>-<p>- <img src="6_Images_image.png">-</p>-<p>You can also copy and paste an image from web - the image will be (asynchronously)- downloaded and embedded.</p><h2>Configuring the images</h2><p>Clicking on an image will reveal a popup with multiple options:<br>- <img src="9_Images_image.png">+ <img src="7_Images_image.png"></p><h3>Alignment</h3><p>The first set of options configure the alignment are, in order:</p>@@ -49,7 +74,7 @@ class="table"></tr><tr><td>- <img src="10_Images_image.png">+ <img src="8_Images_image.png"></td><td>Centered image</td><td>@@ -64,7 +89,7 @@ class="table"></td><td>Wrap text</td><td>- <img src="7_Images_image.png">+ <img src="6_Images_image.png"></td><td>The image will be displayed to the left or the right of the text.</td></tr>@@ -88,7 +113,7 @@ class="table">it attempts to compress and resize (with pretty aggressive settings) uploadedimages before storing them to the database. You may then notice some qualitydegradation. Basic quality settings is available in <a class="reference-link"- href="#root/_help_4TIF1oA4VQRO">Options</a> → Other.</p>+ href="#root/_help_4TIF1oA4VQRO">Options</a> → <em>Media</em>.</p><p>If you want to save images in their original resolution, it is recommendedto save them as attachment to note (look for the contextual menu in <adiff --git a/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.md b/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.mdindex 657f3c7b76..b4e6fe8ecf 100644--- a/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.md+++ b/docs/Developer Guide/Developer Guide/Dependencies/CKEditor/Differences from upstream.md@@ -8,30 +8,6 @@| `packages/ckeditor5-mention/src/mentionui.ts` | `createRegExp()` | `6db05043be24bacf9bd51ea46408232b01a1b232` (added back) | Allows triggering the autocomplete for labels and attributes in the attribute editor. || `init()` | `55a63a1934efb9a520fcc2d69f3ce55ac22aca39` | Allows dismissing @-mention permanently after pressing ESC, otherwise it would automatically show up as soon as a space was entered. | |-## Upstream behaviour overridden at runtime--The editor is used as published, so these are not patches to CKEditor's own files: a Trilium plugin listens on the same event at a higher priority and takes the decision away from upstream before it runs. They are recorded here because the code they pre-empt is still present and still looks perfectly correct on its own — each of these is easy to mistake for redundant and delete.--### `ClipboardBareImage` — preferring a clipboard image file over the pasted HTML--`packages/ckeditor5/src/plugins/clipboard_bare_image.ts`, on `clipboardInput` at `high`, ahead of `ImageUploadEditing`'s normal-priority listener.--Upstream deliberately ignores the clipboard's image files whenever any HTML is present ([ckeditor/ckeditor5-upload#68](https://github.com/ckeditor/ckeditor5-upload/issues/68)): a copy from Word carries a bitmap of the whole selection alongside the markup, and letting the file win would replace the text with a picture of it. That guard is correct and must stay.--It is wrong, however, for a picture copied out of Slack, Google Chat or a browser tab. There the HTML names the picture by a URL private to the app that served it, so the note ends up pointing at something neither the server nor the browser can fetch, while the decoded bytes sit unused on the clipboard.--The override therefore applies in exactly one shape — the HTML is a single `<img>` and nothing besides, and exactly one image file is on offer. **Do not widen it.** Anything that lets a file win while the HTML carries text reintroduces [ckeditor/ckeditor5#2830](https://github.com/ckeditor/ckeditor5/issues/2830), which the spec pins directly.--A mixed selection of text and pictures carries no file at all, so it is out of reach here and still depends on the server fetching the URL after the note is saved (`packages/trilium-core/src/services/image_download.ts`) — which cannot work on an instance without network access to the originating host.--### `ClipboardImageEmbed` — keeping an internal paste reference-based--`packages/ckeditor5/src/plugins/clipboard_image_embed.ts`, on `inputTransformation` at `high`, again ahead of `ImageUploadEditing`.--Copying note content out embeds each internal image as a `data:` URI so it survives into external applications, stashing the original reference in `data-trilium-src`. On the way back in, that reference has to be restored *before* upstream sees a `data:` image and uploads it as a brand-new attachment. Lose the priority and every internal copy/paste silently duplicates its images.--The `clipboardImageEmbedEnabled` option gates only the embedding side. Restoring is intentionally ungated: a copy taken while the feature was on must still restore afterwards, or it turns into exactly the duplicate upload the marker exists to prevent.-## Checking the old repoUse the following command to identify commits from Zadam:diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex fc2df27f76..86e2ae773f 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -5428,38 +5428,24 @@{"type": "relation","name": "internalLink",- "value": "W8vYD3Q1zjCR",+ "value": "GTwFsgaA0lCt","isInheritable": false,"position": 40},{"type": "relation","name": "internalLink",- "value": "8YBEPzcpUgxw",+ "value": "CtBQqbwXDx1w","isInheritable": false,"position": 50},{"type": "relation","name": "internalLink",- "value": "oPVyFC7WL2Lp",+ "value": "UmgZAfcltxkS","isInheritable": false,"position": 60},- {- "type": "label",- "name": "shareAlias",- "value": "attachments",- "isInheritable": false,- "position": 20- },- {- "type": "label",- "name": "iconClass",- "value": "bx bx-paperclip",- "isInheritable": false,- "position": 40- },{"type": "relation","name": "internalLink",@@ -5470,23 +5456,37 @@{"type": "relation","name": "internalLink",- "value": "GTwFsgaA0lCt",+ "value": "W8vYD3Q1zjCR","isInheritable": false,"position": 80},{"type": "relation","name": "internalLink",- "value": "CtBQqbwXDx1w",+ "value": "8YBEPzcpUgxw","isInheritable": false,"position": 90},{"type": "relation","name": "internalLink",- "value": "UmgZAfcltxkS",+ "value": "oPVyFC7WL2Lp","isInheritable": false,"position": 100+ },+ {+ "type": "label",+ "name": "shareAlias",+ "value": "attachments",+ "isInheritable": false,+ "position": 20+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-paperclip",+ "isInheritable": false,+ "position": 40}],"format": "markdown",@@ -8117,87 +8117,94 @@{"type": "relation","name": "internalLink",- "value": "QxEyIjRBizuC",+ "value": "4TIF1oA4VQRO","isInheritable": false,"position": 70},{"type": "relation","name": "internalLink",- "value": "s1aBHPd79XYj",+ "value": "QxEyIjRBizuC","isInheritable": false,"position": 80},{"type": "relation","name": "internalLink",- "value": "hrZ1D00cLbal",+ "value": "s1aBHPd79XYj","isInheritable": false,"position": 90},{"type": "relation","name": "internalLink",- "value": "GTwFsgaA0lCt",+ "value": "hrZ1D00cLbal","isInheritable": false,"position": 100},{"type": "relation","name": "internalLink",- "value": "NwBbFdNZ9h7O",+ "value": "GTwFsgaA0lCt","isInheritable": false,"position": 110},{"type": "relation","name": "internalLink",- "value": "NdowYOC1GFKS",+ "value": "NwBbFdNZ9h7O","isInheritable": false,"position": 120},{"type": "relation","name": "internalLink",- "value": "BFvAtE74rbP6",+ "value": "NdowYOC1GFKS","isInheritable": false,"position": 130},{"type": "relation","name": "internalLink",- "value": "bwZpz2ajCEwO",+ "value": "BFvAtE74rbP6","isInheritable": false,"position": 140},{"type": "relation","name": "internalLink",- "value": "OFXdgB2nNk1F",+ "value": "bwZpz2ajCEwO","isInheritable": false,"position": 150},{"type": "relation","name": "internalLink",- "value": "2FvYrpmOXm29",+ "value": "OFXdgB2nNk1F","isInheritable": false,"position": 160},{"type": "relation","name": "internalLink",- "value": "Cq5X6iKQop6R",+ "value": "2FvYrpmOXm29","isInheritable": false,"position": 170},{"type": "relation","name": "internalLink",- "value": "wy8So3yZZlH9",+ "value": "Cq5X6iKQop6R","isInheritable": false,"position": 180},+ {+ "type": "relation",+ "name": "internalLink",+ "value": "wy8So3yZZlH9",+ "isInheritable": false,+ "position": 190+ },{"type": "label","name": "shareAlias",@@ -8211,13 +8218,6 @@"value": "bx bx-window-open","isInheritable": false,"position": 20- },- {- "type": "relation",- "name": "internalLink",- "value": "4TIF1oA4VQRO",- "isInheritable": false,- "position": 190}],"format": "markdown",@@ -10499,6 +10499,13 @@"value": "bx bx-image-alt","isInheritable": false,"position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "nRhnJkTT8cPs",+ "isInheritable": false,+ "position": 60}],"format": "markdown",@@ -10552,29 +10559,13 @@"position": 10,"dataFileName": "5_Images_image.png"},- {- "attachmentId": "MTsRB4C0yvKX",- "title": "image.png",- "role": "image",- "mime": "image/jpg",- "position": 10,- "dataFileName": "6_Images_image.png"- },{"attachmentId": "NZJRGKS6yDeg","title": "image.png","role": "image","mime": "image/jpg","position": 10,- "dataFileName": "7_Images_image.png"- },- {- "attachmentId": "PUjxzv10IJkx",- "title": "image.png",- "role": "image",- "mime": "image/jpg",- "position": 10,- "dataFileName": "8_Images_image.png"+ "dataFileName": "6_Images_image.png"},{"attachmentId": "qJXx7vPPD4JW",@@ -10582,7 +10573,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "9_Images_image.png"+ "dataFileName": "7_Images_image.png"},{"attachmentId": "SoDKgOmDoyc1",@@ -10590,7 +10581,7 @@"role": "image","mime": "image/png","position": 10,- "dataFileName": "10_Images_image.png"+ "dataFileName": "8_Images_image.png"}],"dirFileName": "Images",diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.mdindex 7550056eb9..5322ddd2b3 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Markdown/Supported syntax.md@@ -62,7 +62,7 @@ Background highlights are supported in two ways:* The Markdown `==` extension which is supported by other Markdown-based applications such as Obsidian:- ```gfm+ ```==highlighted==```* The canonical HTML representation of highlights, as supported by Trilium:diff --git a/docs/User Guide/User Guide/Note Types/Markdown.md b/docs/User Guide/User Guide/Note Types/Markdown.mdindex 8edadc8606..7d24351f40 100644--- a/docs/User Guide/User Guide/Note Types/Markdown.md+++ b/docs/User Guide/User Guide/Note Types/Markdown.md@@ -86,7 +86,7 @@ The following features are supported by Trilium's Markdown format and will show```* Highlights (background color) are supported both via the `==` Markdown syntax, as well as the canonical HTML representation in Trilium:- ```gfm+ ```==highlighted==<span style="background-color:hsl(0,0%,100%);">Highlighted</span>```diff --git a/docs/User Guide/User Guide/Note Types/Text/10_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/10_Images_image.pngdeleted file mode 100644index 32f99c37cf..0000000000Binary files a/docs/User Guide/User Guide/Note Types/Text/10_Images_image.png and /dev/null differdiff --git a/docs/User Guide/User Guide/Note Types/Text/6_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/6_Images_image.pngindex f8c5cf48fc..731df83bb9 100644Binary files a/docs/User Guide/User Guide/Note Types/Text/6_Images_image.png and b/docs/User Guide/User Guide/Note Types/Text/6_Images_image.png differdiff --git a/docs/User Guide/User Guide/Note Types/Text/7_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/7_Images_image.pngindex 731df83bb9..8fa28fbf98 100644Binary files a/docs/User Guide/User Guide/Note Types/Text/7_Images_image.png and b/docs/User Guide/User Guide/Note Types/Text/7_Images_image.png differdiff --git a/docs/User Guide/User Guide/Note Types/Text/8_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/8_Images_image.pngindex 0167e759ba..32f99c37cf 100644Binary files a/docs/User Guide/User Guide/Note Types/Text/8_Images_image.png and b/docs/User Guide/User Guide/Note Types/Text/8_Images_image.png differdiff --git a/docs/User Guide/User Guide/Note Types/Text/9_Images_image.png b/docs/User Guide/User Guide/Note Types/Text/9_Images_image.pngdeleted file mode 100644index 8fa28fbf98..0000000000Binary files a/docs/User Guide/User Guide/Note Types/Text/9_Images_image.png and /dev/null differdiff --git a/docs/User Guide/User Guide/Note Types/Text/Images.md b/docs/User Guide/User Guide/Note Types/Text/Images.mdindex 835988c63b..b5b76e0723 100644--- a/docs/User Guide/User Guide/Note Types/Text/Images.md+++ b/docs/User Guide/User Guide/Note Types/Text/Images.md@@ -1,24 +1,32 @@# Images-Trilium supports storing and displaying images. Supported formats are JPEG, PNG and GIF.+Trilium supports storing and displaying images. Supported formats are PNG, JPEG, GIF, BMP, WebP, AVIF and SVG.An image can be uploaded in the form of note's [attachment](../../Basic%20Concepts%20and%20Features/Notes/Attachments.md) or as a standalone [note](../../Basic%20Concepts%20and%20Features/Navigation/Tree%20Concepts.md) placed into the [note tree](../../Basic%20Concepts%20and%20Features/Navigation/Tree%20Concepts.md). Its reference can be copied into a text note, in order to display it in the text itself.## Uploading images-To add an image to the note, simply drag it from file explorer onto the note editor inside Trilium and the image will be uploaded.+To add an image to the note:-+* Simply drag it from file explorer onto the note editor inside Trilium and the image will be uploaded.+* Alternatively, from the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a> look for the _Insert image_ icon.+* You can also copy and paste an image from web (see section below).-Alternatively you can click on block toolbar and then on "Insert image":+## Clipboard & automatic download of images-+Trilium has a special handling for images copied to and pasted from the clipboard.-You can also copy and paste an image from web - the image will be (asynchronously) downloaded and embedded.+* For a mix of text and images, the images are downloaded automatically by the server (or desktop app, depending on what is being used).++ * This means that the image must be publicly accessible and reachable from wherever Trilium is running. Inaccessible images will end up as broken images.+* If a single image is pasted into Trilium, it will prefer the image that comes in the clipboard. This makes it possible to copy images that Trilium would not otherwise be able to reach, such as Google Chat, Slack, etc.+* When a text with images is copied from Trilium and pasted in another app (such as Microsoft Word or LibreOffice Writer), the images will be preserved.++The automatic download of images is enabled by default and can be toggled from <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _Media_ → _Download images automatically._## Configuring the imagesClicking on an image will reveal a popup with multiple options:-+### Alignment@@ -27,13 +35,13 @@ The first set of options configure the alignment are, in order:| Icon | Option | Preview | Description || --- | --- | --- | --- ||  | Inline |  | As the name suggests, the name can be put inside a paragraph and moved around similarly as if it was a block of text. Use drag & drop or cut-paste to move it around. |-|  | Centered image |  | The image will be displayed as a block and centered, not allowing text in either the left or right of it. |-|  | Wrap text |  | The image will be displayed to the left or the right of the text. |+|  | Centered image |  | The image will be displayed as a block and centered, not allowing text in either the left or right of it. |+|  | Wrap text |  | The image will be displayed to the left or the right of the text. ||  | Block align |  | Similarly to _Centered image_, the image will be displayed as a block and aligned either to the left or to the right, but not allowing text to flow on either of its sides. |## Compression-Since Trilium isn't really meant to be primary storage for image data, it attempts to compress and resize (with pretty aggressive settings) uploaded images before storing them to the database. You may then notice some quality degradation. Basic quality settings is available in <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → Other.+Since Trilium isn't really meant to be primary storage for image data, it attempts to compress and resize (with pretty aggressive settings) uploaded images before storing them to the database. You may then notice some quality degradation. Basic quality settings is available in <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _Media_.If you want to save images in their original resolution, it is recommended to save them as attachment to note (look for the contextual menu in <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20buttons.md">Note buttons</a> → _Import files_).