Skip to content

Build your personal knowledge base with Trilium Notes

chore(demo): update scripts to match backend scripting disabled by default

Elian Dorand3c8d0fb8357
diff --git a/apps/edit-docs/demo/!!!meta.json b/apps/edit-docs/demo/!!!meta.json
index d302e31f9c..dd138b0881 100644
--- a/apps/edit-docs/demo/!!!meta.json
+++ b/apps/edit-docs/demo/!!!meta.json
@@ -1,6 +1,6 @@
{
"formatVersion": 2,
- "appVersion": "0.102.2",
+ "appVersion": "0.103.0",
"files": [
{
"isClone": false,
@@ -233,15 +233,7 @@
"isExpanded": false,
"type": "text",
"mime": "text/html",
- "attributes": [
- {
- "type": "relation",
- "name": "internalLink",
- "value": "_help_nBAXQFj20hS1",
- "isInheritable": false,
- "position": 10
- }
- ],
+ "attributes": [],
"format": "html",
"dataFileName": "The Last Question.html",
"attachments": [],
@@ -272,7 +264,7 @@
"position": 1
}
],
- "dataFileName": "The Last Question by Issac.pdf",
+ "dataFileName": "The Last Question by Issac Asimov.pdf",
"attachments": []
}
]
@@ -1339,7 +1331,7 @@
}
],
"format": "html",
- "dataFileName": "TODO - Send invites for christ.html",
+ "dataFileName": "TODO - Send invites for christmas party.html",
"attachments": []
}
]
@@ -1866,7 +1858,7 @@
}
],
"format": "html",
- "dataFileName": "DONE - Buy a board game for Al.html",
+ "dataFileName": "DONE - Buy a board game for Alice.html",
"attachments": [
{
"attachmentId": "SmnN1IA6sqy7",
@@ -1874,7 +1866,7 @@
"role": "image",
"mime": "image/jpg",
"position": 10,
- "dataFileName": "DONE - Buy a board game fo.jpg"
+ "dataFileName": "DONE - Buy a board game for Alice_codenames.jpg"
}
]
},
@@ -3077,7 +3069,7 @@
"role": "image",
"mime": "image/svg+xml",
"position": 10,
- "dataFileName": "Entity Relationship_mermai.svg"
+ "dataFileName": "Entity Relationship_mermaid-export.svg"
}
]
},
@@ -3214,7 +3206,7 @@
"role": "viewConfig",
"mime": "application/json",
"position": 0,
- "dataFileName": "Geo Map (The Seven Wonder.json"
+ "dataFileName": "Geo Map (The Seven Wonders of the World)_geoMap.json"
}
],
"dirFileName": "Geo Map (The Seven Wonders of the World)",
@@ -3861,7 +3853,7 @@
"position": 30
}
],
- "dataFileName": "eb-garamond-v9-latin-reg.woff2",
+ "dataFileName": "eb-garamond-v9-latin-regular.woff2",
"attachments": []
},
{
@@ -3902,7 +3894,7 @@
"position": 30
}
],
- "dataFileName": "raleway-v12-latin-regula.woff2",
+ "dataFileName": "raleway-v12-latin-regular.woff2",
"attachments": []
}
]
@@ -4122,7 +4114,7 @@
}
],
"format": "html",
- "dataFileName": "Send invites for christmas par.html",
+ "dataFileName": "Send invites for christmas party.html",
"attachments": []
}
]
@@ -4500,7 +4492,7 @@
"role": "image",
"mime": "image/jpg",
"position": 10,
- "dataFileName": "Buy a board game for Alice.jpg"
+ "dataFileName": "Buy a board game for Alice_codenames.jpg"
}
]
},
@@ -5573,7 +5565,7 @@
"position": 1
}
],
- "dataFileName": "chartjs-plugin-datalabe.min.js",
+ "dataFileName": "chartjs-plugin-datalabels.min.js",
"attachments": []
}
]
diff --git a/apps/edit-docs/demo/navigation.html b/apps/edit-docs/demo/navigation.html
index f41d8af411..f06e39a25b 100644
--- a/apps/edit-docs/demo/navigation.html
+++ b/apps/edit-docs/demo/navigation.html
@@ -22,7 +22,7 @@
</li>
<li><a href="root/Trilium%20Demo/Inbox/The%20Last%20Question.html" target="detail">The Last Question</a>
<ul>
- <li><a href="root/Trilium%20Demo/Inbox/The%20Last%20Question/The%20Last%20Question%20by%20Issac.pdf"
+ <li><a href="root/Trilium%20Demo/Inbox/The%20Last%20Question/The%20Last%20Question%20by%20Issac%20Asimov.pdf"
target="detail">The Last Question by Issac Asimov.pdf</a>
</li>
</ul>
@@ -117,7 +117,7 @@
</li>
</ul>
</li>
- <li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/TODO%20-%20Send%20invites%20for%20christ.html"
+ <li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/TODO%20-%20Send%20invites%20for%20christmas%20party.html"
target="detail">TODO - Send invites for christmas party</a>
</li>
</ul>
@@ -166,7 +166,7 @@
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/24%20-%20Sunday%20-%20Christmas%20Eve!.html"
target="detail">24 - Sunday - Christmas Eve!</a>
<ul>
- <li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/24%20-%20Sunday%20-%20Christmas%20Eve!/DONE%20-%20Buy%20a%20board%20game%20for%20Al.html"
+ <li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/24%20-%20Sunday%20-%20Christmas%20Eve!/DONE%20-%20Buy%20a%20board%20game%20for%20Alice.html"
target="detail">DONE - Buy a board game for Alice</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/24%20-%20Sunday%20-%20Christmas%20Eve!/TODO%20-%20Buy%20milk.html"
@@ -378,10 +378,10 @@
</li>
<li><a href="root/Trilium%20Demo/Steel%20Blue.css" target="detail">Steel Blue</a>
<ul>
- <li><a href="root/Trilium%20Demo/Steel%20Blue/eb-garamond-v9-latin-reg.woff2"
+ <li><a href="root/Trilium%20Demo/Steel%20Blue/eb-garamond-v9-latin-regular.woff2"
target="detail">eb-garamond-v9-latin-regular.woff2</a>
</li>
- <li><a href="root/Trilium%20Demo/Steel%20Blue/raleway-v12-latin-regula.woff2"
+ <li><a href="root/Trilium%20Demo/Steel%20Blue/raleway-v12-latin-regular.woff2"
target="detail">raleway-v12-latin-regular.woff2</a>
</li>
</ul>
@@ -398,7 +398,7 @@
</li>
<li>work
<ul>
- <li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/work/Send%20invites%20for%20christmas%20par.html"
+ <li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/work/Send%20invites%20for%20christmas%20party.html"
target="detail">Send invites for christmas party</a>
</li>
</ul>
@@ -445,7 +445,7 @@
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/mall/Buy%20some%20book%20for%20Bob.html"
target="detail">Buy some book for Bob</a>
</li>
- <li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/work/Send%20invites%20for%20christmas%20par.html"
+ <li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/work/Send%20invites%20for%20christmas%20party.html"
target="detail">Send invites for christmas party</a>
</li>
</ul>
@@ -543,7 +543,7 @@
<li><a href="root/Trilium%20Demo/Scripting%20examples/Weight%20Tracker/Implementation/JS%20code/chart.js"
target="detail">chart.js</a>
</li>
- <li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template/js/renderPieChart/chartjs-plugin-datalabe.min.js"
+ <li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template/js/renderPieChart/chartjs-plugin-datalabels.min.js"
target="detail">chartjs-plugin-datalabels.min.js</a>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html b/apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html
index a33b14490e..4f6be2ae63 100644
--- a/apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html
+++ b/apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html
@@ -16,7 +16,7 @@
<h2>☑️ Tasks</h2>
<ul>
- <li data-list-item-id="e4b26220d6ce48997f1116dc1d1d83dc0">[…]</li>
+ <li>[…]</li>
</ul>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo.html b/apps/edit-docs/demo/root/Trilium Demo.html
index 7657c65284..6335f835c3 100644
--- a/apps/edit-docs/demo/root/Trilium Demo.html
+++ b/apps/edit-docs/demo/root/Trilium Demo.html
@@ -25,24 +25,24 @@
you wish.</p>
<p>If you need any help, visit <a href="https://triliumnotes.org">triliumnotes.org</a> or
our <a href="https://github.com/TriliumNext">GitHub repository</a>.</p>
- <h2>Cleanup</h2>
+ <h2>Cleanup</h2>
<p>Once you're finished with experimenting and want to cleanup these pages,
you can simply delete them all.</p>
- <h2>Formatting</h2>
+ <h2>Formatting</h2>
<p>Trilium supports classic formatting like <em>italic</em>, <strong>bold</strong>, <em><strong>bold and italic</strong></em>.
You can add links pointing to <a href="https://triliumnotes.org/">external pages</a> or&nbsp;&nbsp;&nbsp;
<a
class="reference-link" href="Trilium%20Demo/Formatting%20examples">Formatting examples</a>.</p>
- <h3>Lists</h3>
+ <h3>Lists</h3>
<p><strong>Ordered:</strong>
</p>
<ol>
- <li data-list-item-id="e877cc655d0239b8bb0f38696ad5d8abb">First Item</li>
- <li data-list-item-id="e375e76d4e40e41d3b2d81c82c5ea09cd">Second item
+ <li>First Item</li>
+ <li>Second item
<ol>
- <li data-list-item-id="e0b2bd1e3bc1e3c5d8abec0fbc16aca16">First sub-item
+ <li>First sub-item
<ol>
- <li data-list-item-id="ecaa8faedd3102f712d126f4119bca7df">sub-sub-item</li>
+ <li>sub-sub-item</li>
</ol>
</li>
</ol>
@@ -51,14 +51,14 @@
<p><strong>Unordered:</strong>
</p>
<ul>
- <li data-list-item-id="e68bf4b518a16671c314a72073c3d900a">Item</li>
- <li data-list-item-id="eff02ac92025971883f324fbee5ec8233">Another item
+ <li>Item</li>
+ <li>Another item
<ul>
- <li data-list-item-id="e413637ee8e0f3d429e06ddd683df0ea6">Sub-item</li>
+ <li>Sub-item</li>
</ul>
</li>
</ul>
- <h3>Block quotes</h3>
+ <h3>Block quotes</h3>
<blockquote>
<p>Whereof one cannot speak, thereof one must be silent”</p>
<p>– Ludwig Wittgenstein</p>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Books/Book template.html b/apps/edit-docs/demo/root/Trilium Demo/Books/Book template.html
index ac97c2f509..5f589ccde3 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Books/Book template.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Books/Book template.html
@@ -14,24 +14,19 @@
<div class="ck-content">
<h2>Main characters</h2>
-
<p>… here put main characters …</p>
<p>&nbsp;</p>
<h2>Plot</h2>
-
<p>… describe main plot lines …</p>
<p>&nbsp;</p>
<h2>Tone</h2>
-
<p>&nbsp;</p>
<h2>Genre</h2>
-
<p>scifi / drama / romance</p>
<p>&nbsp;</p>
<h2>Similar books</h2>
-
<ul>
- <li data-list-item-id="eebd9f297d5dc97dfc46579ba1f25d7bf">…</li>
+ <li>…</li>
</ul>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Books/To read.html b/apps/edit-docs/demo/root/Trilium Demo/Books/To read.html
index 9e3a2eda7a..7099d8b336 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Books/To read.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Books/To read.html
@@ -15,11 +15,9 @@
<div class="ck-content">
<p>Check out <a href="https://www.amazon.com/amz-books/book-deals">Kindle Daily Deals</a>:</p>
<ul>
- <li data-list-item-id="e5bec34ede90d88a3ad5f7362ab60cbfb">Cixin Liu - <a href="https://www.amazon.com/Dark-Forest-Remembrance-Earths-Past/dp/0765386690/">The Dark Forest</a>
-
+ <li>Cixin Liu - <a href="https://www.amazon.com/Dark-Forest-Remembrance-Earths-Past/dp/0765386690/">The Dark Forest</a>
</li>
- <li data-list-item-id="ef10faa539920a4fd817f09ba564d69d3">Ann Leckie - <a href="https://www.amazon.com/Ancillary-Sword-Imperial-Radch-Leckie/dp/0316246654/">Ancillary Sword</a>
-
+ <li>Ann Leckie - <a href="https://www.amazon.com/Ancillary-Sword-Imperial-Radch-Leckie/dp/0316246654/">Ancillary Sword</a>
</li>
</ul>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html
index 1a581a9d0e..62c728414e 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html
@@ -18,25 +18,21 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">buy milk&nbsp;&nbsp;</span>
-
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">do the laundry&nbsp;&nbsp;</span>
-
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">watch TV&nbsp;&nbsp;</span>
-
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">eat ice cream&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html
index b1289ea80c..e562046eff 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html
@@ -23,12 +23,19 @@
+
+
+
+
alert("Hello world");
-}</code></pre>
+
+
+
+}</code></pre>
<p>For larger pieces of code it is better to use a code note, which uses
a fully-fledged code editor (CodeMirror). For an example of a code note,
see&nbsp;<a class="reference-link" href="../Scripting%20examples/Custom%20request%20handler.js">Custom request handler</a>.</p>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Math.html b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Math.html
index e646e00b48..54a28f3ff6 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Math.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Math.html
@@ -15,9 +15,7 @@
<div class="ck-content">
<p><span class="math-tex">\(% \f is defined as #1f(#2) using the macro \f\relax{x} = \int_{-\infty}^\infty &nbsp; &nbsp; \f\hat\xi\,e^{2 \pi i \xi x} &nbsp; &nbsp; \,d\xi\)</span>Some
math examples:</p><span class="math-tex">\[\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }\]</span>
-
<p>Another:</p><span class="math-tex">\[\displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)\]</span>
-
<p>Inline math is also possible:&nbsp;<span class="math-tex">\(c^2 = a^2 + b^2\)</span>&nbsp;</p>
<p>&nbsp;</p>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Inbox/Book to read.html b/apps/edit-docs/demo/root/Trilium Demo/Inbox/Book to read.html
index c06d6e52d2..9a45dd7d4d 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Inbox/Book to read.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Inbox/Book to read.html
@@ -15,7 +15,6 @@
<div class="ck-content">
<p>How to be a stoic from Massimo Pigliuci:</p>
<p><a href="https://www.amazon.com/gp/product/B01K3WN1BY">https://www.amazon.com/gp/product/B01K3WN1BY</a>
-
</p>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question.html b/apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question.html
index 3cb00a8e48..e0d736c1be 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question.html
@@ -22,7 +22,6 @@
<p>This page demonstrates two things:</p>
<ul>
<li>possibility to <a href="#root/_hidden/_help/_help_KSZ04uQ2D1St/_help_iPIMuisry3hd/_help_nBAXQFj20hS1">include one note into another</a>
-
</li>
<li>PDF preview - you can read PDFs directly in Trilium!</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question/The Last Question by Issac.pdf b/apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question/The Last Question by Issac Asimov.pdf
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question/The Last Question by Issac.pdf
rename to apps/edit-docs/demo/root/Trilium Demo/Inbox/The Last Question/The Last Question by Issac Asimov.pdf
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal.html b/apps/edit-docs/demo/root/Trilium Demo/Journal.html
index 629b4870fe..faac301b5b 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal.html
@@ -14,7 +14,6 @@
<div class="ck-content">
<p>You can read some explanation on how this journal works here: <a href="https://github.com/zadam/trilium/wiki/Day-notes">https://github.com/zadam/trilium/wiki/Day-notes</a>
-
</p>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday.html
index e4a99c1099..5171b6ee2a 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html
index 01ad36c16c..2a2d083364 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html
@@ -17,7 +17,6 @@
<li>XBox</li>
<li>Candles</li>
<li><a href="https://www.amazon.ca/Anker-SoundCore-Portable-Bluetooth-Resistance/dp/B01MTB55WH?pd_rd_wg=honW8&amp;pd_rd_r=c9bb7c0f-0051-4da7-991f-4ca711a1b3e3&amp;pd_rd_w=ciUpR&amp;ref_=pd_gw_simh&amp;pf_rd_r=K10XKX0NGPDNTYYP4BS4&amp;pf_rd_p=5f1b460b-78c1-580e-929e-2878fe4859e8">Portable speakers</a>
-
</li>
<li>...?</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html
index bae5a1ed0d..0a85f8618d 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html
@@ -14,10 +14,8 @@
<div class="ck-content">
<p>Wiki: <a href="https://en.wikipedia.org/wiki/Trusted_timestamping">https://en.wikipedia.org/wiki/Trusted_timestamping</a>
-
</p>
<p>Bozho: <a href="https://techblog.bozho.net/using-trusted-timestamping-java/">https://techblog.bozho.net/using-trusted-timestamping-java/</a>
-
</p>
<p><strong>Trusted timestamping</strong> is the process of <a href="https://en.wikipedia.org/wiki/Computer_security">securely</a> keeping
track of the creation and modification time of a document. Security here
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html
index 3722a62c04..ae490681e3 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html
@@ -16,7 +16,6 @@
<p>Miscellaneous notes done on monday ...</p>
<p>&nbsp;</p>
<p>Interesting video: <a href="https://www.youtube.com/watch?v=_eSAF_qT_FY&amp;feature=youtu.be">https://www.youtube.com/watch?v=_eSAF_qT_FY&amp;feature=youtu.be</a>
-
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday/TODO - Send invites for christ.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday/TODO - Send invites for christmas party.html
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday/TODO - Send invites for christ.html
rename to apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday/TODO - Send invites for christmas party.html
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html
index 487b715306..f0309b26d7 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html
index ae559b3c1d..28245eb1aa 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html
index 28b77ec567..2ff2ac7429 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html
index 3545fd3d73..f8ec2e8e5b 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html
index 912b715c0d..6973b85310 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html
index c243a035ca..29a1e0cd29 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Al.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Alice.html
similarity index 94%
rename from apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Al.html
rename to apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Alice.html
index e7367a06ce..c5f1a13b8d 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Al.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Alice.html
@@ -14,11 +14,10 @@
<div class="ck-content">
<figure class="image image-style-side">
- <img style="aspect-ratio:209/300;" src="DONE - Buy a board game fo.jpg"
+ <img style="aspect-ratio:209/300;" src="DONE - Buy a board game for Alice_codenames.jpg"
width="209" height="300">
</figure>
<p>Maybe CodeNames? <a href="https://boardgamegeek.com/boardgame/178900/codenames">https://boardgamegeek.com/boardgame/178900/codenames</a>
-
</p>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game fo.jpg b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Alice_codenames.jpg
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game fo.jpg
rename to apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Alice_codenames.jpg
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html
index 133fae97b2..36cbd2ed64 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html
index 44bd101aec..623273a9ea 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html
@@ -18,7 +18,6 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
-
</label>
</li>
</ul>
diff --git "a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html" "b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html"
index 3992ceed93..ab44bd6384 100644
--- "a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html"
+++ "b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html"
@@ -24,17 +24,14 @@
<span
class="footnote-reference" data-footnote-reference="" data-footnote-index="1"
data-footnote-id="6qz4pm021mi" role="doc-noteref" id="fnref6qz4pm021mi"><sup><a href="#fn6qz4pm021mi">[1]</a></sup>
-
</span>
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="6qz4pm021mi" role="doc-endnote" id="fn6qz4pm021mi"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="6qz4pm021mi"><sup><strong><a href="#fnref6qz4pm021mi">^</a></strong></sup></span>
-
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
-
</p>
</div>
</li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html
index cbaae70da8..3e1f1e9051 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html
@@ -26,16 +26,13 @@
been brought to its knees.<span class="footnote-reference" data-footnote-reference=""
data-footnote-index="1" data-footnote-id="o6g991vkrwj" role="doc-noteref"
id="fnrefo6g991vkrwj"><sup><a href="#fno6g991vkrwj">[1]</a></sup></span>
-
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="o6g991vkrwj" role="doc-endnote" id="fno6g991vkrwj"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="o6g991vkrwj"><sup><strong><a href="#fnrefo6g991vkrwj">^</a></strong></sup></span>
-
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
-
</p>
</div>
</li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html
index 929103047f..5e9817e5bd 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html
@@ -22,16 +22,13 @@
around 1450 in polished drystone walls.<span class="footnote-reference"
data-footnote-reference="" data-footnote-index="1" data-footnote-id="4prjheuho88"
role="doc-noteref" id="fnref4prjheuho88"><sup><a href="#fn4prjheuho88">[1]</a></sup></span>
-
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="4prjheuho88" role="doc-endnote" id="fn4prjheuho88"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="4prjheuho88"><sup><strong><a href="#fnref4prjheuho88">^</a></strong></sup></span>
-
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
-
</p>
</div>
</li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html
index 55e0adafad..1396c2691d 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html
@@ -23,16 +23,13 @@
by earthquakes.<span class="footnote-reference" data-footnote-reference=""
data-footnote-index="1" data-footnote-id="ej5sd0bakne" role="doc-noteref"
id="fnrefej5sd0bakne"><sup><a href="#fnej5sd0bakne">[1]</a></sup></span>
-
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="ej5sd0bakne" role="doc-endnote" id="fnej5sd0bakne"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="ej5sd0bakne"><sup><strong><a href="#fnrefej5sd0bakne">^</a></strong></sup></span>
-
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
-
</p>
</div>
</li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html
index c9abd680d9..650a6623cc 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html
@@ -26,17 +26,14 @@
<span
class="footnote-reference" data-footnote-reference="" data-footnote-index="1"
data-footnote-id="4kitkusvyi3" role="doc-noteref" id="fnref4kitkusvyi3"><sup><a href="#fn4kitkusvyi3">[1]</a></sup>
-
</span>
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="4kitkusvyi3" role="doc-endnote" id="fn4kitkusvyi3"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="4kitkusvyi3"><sup><strong><a href="#fnref4kitkusvyi3">^</a></strong></sup></span>
-
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
-
</p>
</div>
</li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html
index ccedb83882..1f5d5886fc 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html
@@ -23,17 +23,14 @@
<span
class="footnote-reference" data-footnote-reference="" data-footnote-index="1"
data-footnote-id="o0o2das7ljm" role="doc-noteref" id="fnrefo0o2das7ljm"><sup><a href="#fno0o2das7ljm">[1]</a></sup>
-
</span>
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="o0o2das7ljm" role="doc-endnote" id="fno0o2das7ljm"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="o0o2das7ljm"><sup><strong><a href="#fnrefo0o2das7ljm">^</a></strong></sup></span>
-
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
-
</p>
</div>
</li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html
index 755184be06..0d692392a6 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html
@@ -23,16 +23,13 @@
the complex.<span class="footnote-reference" data-footnote-reference=""
data-footnote-index="1" data-footnote-id="zzzjn52iwk" role="doc-noteref"
id="fnrefzzzjn52iwk"><sup><a href="#fnzzzjn52iwk">[1]</a></sup></span>
-
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="zzzjn52iwk" role="doc-endnote" id="fnzzzjn52iwk"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="zzzjn52iwk"><sup><strong><a href="#fnrefzzzjn52iwk">^</a></strong></sup></span>
-
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
-
</p>
</div>
</li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonder.json b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)_geoMap.json
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonder.json
rename to apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)_geoMap.json
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Markdown.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Markdown.html
index 2b94c2514f..f27b741f0a 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Markdown.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Markdown.html
@@ -15,14 +15,14 @@
<div class="ck-content">
<p>A showcase of all Markdown features supported in Trilium's Markdown note
type.</p>
- <h2>1. Basic Formatting (Standard Markdown)</h2>
+ <h2>1. Basic Formatting (Standard Markdown)</h2>
<p><strong>Bold text</strong>, <em>italic text</em>, <del>strikethrough</del>,
and <code spellcheck="false">inline code</code>.</p>
<blockquote>
<p>A simple blockquote demonstrating standard Markdown.</p>
</blockquote>
- <h2>2. GitHub-Flavored Markdown (GFM)</h2>
- <h3>Tables</h3>
+ <h2>2. GitHub-Flavored Markdown (GFM)</h2>
+ <h3>Tables</h3>
<figure class="table">
<table>
<thead>
@@ -61,53 +61,66 @@
</tbody>
</table>
</figure>
- <h3>Task Lists</h3>
+ <h3>Task Lists</h3>
<ul class="todo-list">
- <li data-list-item-id="e3802c5896ce1fc21f10c0a555ebdb8b2">
+ <li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">Create a Markdown note in Trilium</span>
</label>
</li>
- <li data-list-item-id="eee6caa571cf9b96f208028f69ebeafd0">
+ <li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">Add syntax highlighting</span>
</label>
</li>
- <li data-list-item-id="e47aeaa2b56cd8a43be9c299fd881f74a">
+ <li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">Convert from a Text note</span>
</label>
</li>
- <li data-list-item-id="e2f69fdf5c9c602cb26aac2f3ab7de7e8">
+ <li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">Export and re-import</span>
</label>
</li>
</ul>
- <h2>3. Code Blocks with Syntax Highlighting</h2>
+ <h2>3. Code Blocks with Syntax Highlighting</h2>
<blockquote>
<p><strong>Note:</strong> The language must be specified for syntax highlighting
to apply.</p>
</blockquote>
<p>Sample with no syntax highlighting:</p><pre><code class="language-text-x-trilium-auto">function greet(name) {
+
return `Hello, ${name}!`;
+
}
+
console.log(greet("Trilium"));</code></pre>
<p>JavaScript with syntax highlighting:</p><pre><code class="language-application-javascript-env-backend">// JavaScript example
+
function greet(name) {
+
return `Hello, ${name}!`;
+
}
+
console.log(greet("Trilium"));</code></pre>
<p>Python example:</p><pre><code class="language-text-x-python">def factorial(n):
+
return 1 if n &lt;= 1 else n * factorial(n - 1)
+
+
print(factorial(10))</code></pre>
<p>SQL example:</p><pre><code class="language-text-x-trilium-auto">SELECT title, dateCreated
+
FROM notes
+
WHERE type = 'markdown'
+
ORDER BY dateCreated DESC;</code></pre>
<hr>
- <h2>4. Block Quotes &amp; Admonitions</h2>
+ <h2>4. Block Quotes &amp; Admonitions</h2>
<blockquote>
<p>A standard Markdown blockquote. It can span multiple lines.</p>
</blockquote>
@@ -131,75 +144,94 @@ ORDER BY dateCreated DESC;</code></pre>
actions.</p>
</aside>
<hr>
- <h2>5. Math Equations</h2>
+ <h2>5. Math Equations</h2>
<p>Inline math:&nbsp;<span class="math-tex">\(E = mc^2\)</span>
</p>
<p>Block math:</p><span class="math-tex">\[\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}\]</span>
<span
class="math-tex">\[\Gamma(n) = (n-1)! \quad \forall n \in \mathbb{N}\]</span>
<hr>
- <h2>6. Mermaid Diagrams</h2><pre spellcheck="false"><code class="language-mermaid">graph TD
+ <h2>6. Mermaid Diagrams</h2><pre spellcheck="false"><code class="language-mermaid">graph TD
+
A[Start] --&gt; B{Is it a Markdown note?}
+
B -- Yes --&gt; C[Render preview]
+
B -- No --&gt; D[Use Text note]
+
C --&gt; E[Enjoy split view!]</code></pre><pre spellcheck="false"><code class="language-mermaid">sequenceDiagram
+
participant User
+
participant Trilium
+
User-&gt;&gt;Trilium: Opens Markdown note
+
Trilium-&gt;&gt;User: Shows split view (source + preview)
+
User-&gt;&gt;Trilium: Edits source
+
Trilium-&gt;&gt;User: Syncs scroll &amp; highlights block</code></pre>
- <h2>7. Internal (Reference) Links — Wikilinks Format</h2>
+ <h2>7. Internal (Reference) Links — Wikilinks Format</h2>
<p>Link to a note by its Note ID using the Wikilinks-like format:</p>
- <p><a class="reference-link" href="/root">[missing note]</a>
+ <p><a class="reference-link" href="#root/Upd4ck33FwwH">[missing note]</a>
</p>
<p>Or using HTML syntax for more control:</p>
<p><a href="#root">Internal link via HTML</a>
</p>
- <h2>8. Include Note (HTML Syntax)</h2>
+ <h2>8. Include Note (HTML Syntax)</h2>
<p>Included notes using HTML syntax.</p>
<section class="include-note" data-note-id="root"
data-box-size="expandable">&nbsp;</section>
- <h2>9. Nested Syntax Highlighting (Code Inside Code Blocks)</h2>
+ <h2>9. Nested Syntax Highlighting (Code Inside Code Blocks)</h2>
<p>Trilium's source pane supports nested syntax highlighting — for example,
highlighting HTML inside a Markdown code fence:</p><pre><code class="language-text-html">&lt;!DOCTYPE html&gt;
+
&lt;html lang="en"&gt;
+
&lt;head&gt;
+
&lt;meta charset="UTF-8"&gt;
+
&lt;title&gt;Trilium&lt;/title&gt;
+
&lt;/head&gt;
+
&lt;body&gt;
+
&lt;h1&gt;Hello from HTML inside Markdown!&lt;/h1&gt;
+
&lt;/body&gt;
+
&lt;/html&gt;</code></pre>
- <h2>10. Lists</h2>
- <h3>Unordered</h3>
+ <h2>10. Lists</h2>
+ <h3>Unordered</h3>
<ul>
- <li data-list-item-id="ef9e712c01065f2662cfd112e80ebe309">Item one
+ <li>Item one
<ul>
- <li data-list-item-id="e1ea5b56e65e7241aaa7853112c76d9cf">Nested item A</li>
- <li data-list-item-id="e7514237ba2b995243e2e8ce792ed172d">Nested item B
+ <li>Nested item A</li>
+ <li>Nested item B
<ul>
- <li data-list-item-id="e7b15f0ab3ae967eb34db66bd2821a349">Deeply nested</li>
+ <li>Deeply nested</li>
</ul>
</li>
</ul>
</li>
- <li data-list-item-id="eca1aaa51c84f113c53208169127cc1fd">Item two</li>
- <li data-list-item-id="ea37d2468bec763bef77b3da9be011925">Item three</li>
+ <li>Item two</li>
+ <li>Item three</li>
</ul>
- <h3>Ordered</h3>
+ <h3>Ordered</h3>
<ol>
- <li data-list-item-id="eaa8f31f650dfa9c0573331518fefe1aa">First step</li>
- <li data-list-item-id="e5c4d719ac0699e2b8c38e70ae044ccd7">Second step
+ <li>First step</li>
+ <li>Second step
<ol>
- <li data-list-item-id="e016ce384d98b189a1c0215d82b89503e">Sub-step A</li>
- <li data-list-item-id="e20675a8b0d8c590af516380c8fdc8f04">Sub-step B</li>
+ <li>Sub-step A</li>
+ <li>Sub-step B</li>
</ol>
</li>
- <li data-list-item-id="ee5cb3c3883093d236b45d8863af4bc33">Third step</li>
+ <li>Third step</li>
</ol>
- <h2>11. Horizontal Rules &amp; Misc</h2>
+ <h2>11. Horizontal Rules &amp; Misc</h2>
<p>Horizontal rule:</p>
<hr>
<p>Superscript: X^2^
@@ -207,9 +239,9 @@ ORDER BY dateCreated DESC;</code></pre>
<br>Footnote reference<a href="#footnote-1"><sup>1</sup></a>
</p>
<section>
- <h2>Footnotes</h2>
+ <h2>Footnotes</h2>
<ol>
- <li data-list-item-id="e2ae6d5e7e73b13f26edd2edff9db0406">This is the footnote content. <a href="#footnote-ref-1">↩</a>
+ <li>This is the footnote content. <a href="#footnote-ref-1">↩</a>
</li>
</ol>
</section>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Mermaid Diagrams/Entity Relationship_mermai.svg b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Mermaid Diagrams/Entity Relationship_mermaid-export.svg
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Note Types/Mermaid Diagrams/Entity Relationship_mermai.svg
rename to apps/edit-docs/demo/root/Trilium Demo/Note Types/Mermaid Diagrams/Entity Relationship_mermaid-export.svg
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js.js
index 4f7d3872b1..0d202ad887 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js.js
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js.js
@@ -1,3 +1,8 @@
+if (!api.isBackendScriptingEnabled() || !api.isSqlConsoleEnabled()) {
+ api.$container.html("<p>This statistic requires backend scripting and the SQL console to be enabled (Options → Security).</p>");
+ return;
+}
+
const attrCounts = await api.runOnBackend(() => {
return api.sql.getRows(`
SELECT
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js/renderPieChart/chartjs-plugin-datalabe.min.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js/renderPieChart/chartjs-plugin-datalabels.min.js
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js/renderPieChart/chartjs-plugin-datalabe.min.js
rename to apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Attribute count/template/js/renderPieChart/chartjs-plugin-datalabels.min.js
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Largest notes/template/js.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Largest notes/template/js.js
index af10eb40a2..9cc822d716 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Largest notes/template/js.js
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Largest notes/template/js.js
@@ -1,3 +1,8 @@
+if (!api.isBackendScriptingEnabled() || !api.isSqlConsoleEnabled()) {
+ api.$container.html("<p>This statistic requires backend scripting and the SQL console to be enabled (Options → Security).</p>");
+ return;
+}
+
const notes = await api.runOnBackend(() => {
const blobSizes = api.sql.getMap(`SELECT blobId, LENGTH(content) FROM blobs`);
const noteBlobIds = api.sql.getRows(`
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most cloned notes/template/js.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most cloned notes/template/js.js
index 63c6f0ba58..732543e9d6 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most cloned notes/template/js.js
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most cloned notes/template/js.js
@@ -1,3 +1,8 @@
+if (!api.isBackendScriptingEnabled() || !api.isSqlConsoleEnabled()) {
+ api.$container.html("<p>This statistic requires backend scripting and the SQL console to be enabled (Options → Security).</p>");
+ return;
+}
+
const notes = await api.runOnBackend(() => {
return api.sql.getRows(`
SELECT
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most edited notes/template/js.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most edited notes/template/js.js
index e36d0e6987..f56b2002ab 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most edited notes/template/js.js
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most edited notes/template/js.js
@@ -1,3 +1,8 @@
+if (!api.isBackendScriptingEnabled() || !api.isSqlConsoleEnabled()) {
+ api.$container.html("<p>This statistic requires backend scripting and the SQL console to be enabled (Options → Security).</p>");
+ return;
+}
+
const notes = await api.runOnBackend(() => {
return api.sql.getRows(`
SELECT
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most linked notes/template/js.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most linked notes/template/js.js
index 53ab6b1c99..306667877f 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most linked notes/template/js.js
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Most linked notes/template/js.js
@@ -1,3 +1,8 @@
+if (!api.isBackendScriptingEnabled() || !api.isSqlConsoleEnabled()) {
+ api.$container.html("<p>This statistic requires backend scripting and the SQL console to be enabled (Options → Security).</p>");
+ return;
+}
+
const notes = await api.runOnBackend(() => {
return api.sql.getRows(`
SELECT
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Note type count/template/js.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Note type count/template/js.js
index 4a4eecb7ba..3539273c43 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Note type count/template/js.js
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Statistics/Note type count/template/js.js
@@ -1,3 +1,8 @@
+if (!api.isBackendScriptingEnabled() || !api.isSqlConsoleEnabled()) {
+ api.$container.html("<p>This statistic requires backend scripting and the SQL console to be enabled (Options → Security).</p>");
+ return;
+}
+
const noteCounts = await api.runOnBackend(() => {
return api.sql.getRows(`
SELECT
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html
index 65b1819f2e..20655ee8af 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html
@@ -14,11 +14,10 @@
<div class="ck-content">
<figure class="image image-style-side">
- <img style="aspect-ratio:209/300;" src="Buy a board game for Alice.jpg"
+ <img style="aspect-ratio:209/300;" src="Buy a board game for Alice_codenames.jpg"
width="209" height="300">
</figure>
<p>Maybe CodeNames? <a href="https://boardgamegeek.com/boardgame/178900/codenames">https://boardgamegeek.com/boardgame/178900/codenames</a>
-
</p>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.jpg b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice_codenames.jpg
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.jpg
rename to apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice_codenames.jpg
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html
index 51831b17f1..ba291c1ae1 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html
@@ -14,7 +14,6 @@
<div class="ck-content">
<p><a href="https://en.wikipedia.org/wiki/The_Black_Swan:_The_Impact_of_the_Highly_Improbable">https://en.wikipedia.org/wiki/The_Black_Swan:_The_Impact_of_the_Highly_Improbable</a>
-
</p>
<p><em><strong>The Black Swan: The Impact of the Highly Improbable</strong></em> is
a 2007 book by author and former <a href="https://en.wikipedia.org/wiki/Options_trader">options trader</a>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/work/Send invites for christmas par.html b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/work/Send invites for christmas party.html
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/work/Send invites for christmas par.html
rename to apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/work/Send invites for christmas party.html
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/TODO/Send invites for christmas party.clone.html b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/TODO/Send invites for christmas party.clone.html
index fd4df01794..af3f8c5c1b 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/TODO/Send invites for christmas party.clone.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/TODO/Send invites for christmas party.clone.html
@@ -13,7 +13,7 @@
<h1 data-trilium-h1>Send invites for christmas party</h1>
<div class="ck-content">
- <p>This is a clone of a note. Go to its <a href="../Locations/work/Send%20invites%20for%20christmas%20par.html">primary location</a>.</p>
+ <p>This is a clone of a note. Go to its <a href="../Locations/work/Send%20invites%20for%20christmas%20party.html">primary location</a>.</p>
</div>
</div>
</body>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Weight Tracker/Implementation/JS code.js b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Weight Tracker/Implementation/JS code.js
index 3c514402a7..c584c12eda 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Weight Tracker/Implementation/JS code.js
+++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Weight Tracker/Implementation/JS code.js
@@ -1,21 +1,17 @@
async function getChartData() {
- const days = await api.runOnBackend(() => {
- const notes = api.getNotesWithLabel('weight');
- const days = [];
+ const notes = await api.searchForNotes("#weight");
+ const days = [];
- for (const note of notes) {
- const date = note.getLabelValue('dateNote');
- const weight = parseFloat(note.getLabelValue('weight'));
+ for (const note of notes) {
+ const date = note.getLabelValue('dateNote');
+ const weight = parseFloat(note.getLabelValue('weight'));
- if (date && weight) {
- days.push({ date, weight });
- }
+ if (date && weight) {
+ days.push({ date, weight });
}
+ }
- days.sort((a, b) => a.date > b.date ? 1 : -1);
-
- return days;
- });
+ days.sort((a, b) => a.date > b.date ? 1 : -1);
const datasets = [
{
@@ -43,4 +39,4 @@ const ctx = api.$container.find("canvas")[0].getContext("2d");
new chartjs.Chart(ctx, {
type: 'line',
data: await getChartData()
-});
\ No newline at end of file
+});
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Steel Blue/eb-garamond-v9-latin-reg.woff2 b/apps/edit-docs/demo/root/Trilium Demo/Steel Blue/eb-garamond-v9-latin-regular.woff2
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Steel Blue/eb-garamond-v9-latin-reg.woff2
rename to apps/edit-docs/demo/root/Trilium Demo/Steel Blue/eb-garamond-v9-latin-regular.woff2
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Steel Blue/raleway-v12-latin-regula.woff2 b/apps/edit-docs/demo/root/Trilium Demo/Steel Blue/raleway-v12-latin-regular.woff2
similarity index 100%
rename from apps/edit-docs/demo/root/Trilium Demo/Steel Blue/raleway-v12-latin-regula.woff2
rename to apps/edit-docs/demo/root/Trilium Demo/Steel Blue/raleway-v12-latin-regular.woff2
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html
index 55c1364be2..aaa6cd1ad2 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html
@@ -25,7 +25,6 @@
and <a href="https://en.wikipedia.org/wiki/Apple_Inc.">Apple's</a> <a href="https://en.wikipedia.org/wiki/MacOS">macOS</a> (formerly
OS X). A version <a href="https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux">is also available for Windows 10</a>.</p>
<p><a href="https://en.wikipedia.org/wiki/Bash_(Unix_shell)">Bash on Wikipedia</a>
-
</p>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html
index 2f686d2def..4dad269dff 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html
@@ -14,7 +14,6 @@
<div class="ck-content">
<h3>Login shell</h3>
-
<p>As a "login shell", Bash reads and sets (executes) the user's profile
from /etc/profile and one of ~/.bash_profile, ~/.bash_login, or ~/.profile
(in that order, using the first one that's readable!).</p>
@@ -24,7 +23,6 @@
that only make sense for the initial user login. That's why all UNIX® shells
have (should have) a "login" mode.</p>
<p><em><strong>Methods to start Bash as a login shell:</strong></em>
-
</p>
<ul>
<li>the first character of argv[0] is - (a hyphen): traditional UNIX® shells
@@ -33,20 +31,17 @@
<li>Bash is started with the --login option</li>
</ul>
<p><em><strong>Methods to test for login shell mode:</strong></em>
-
</p>
<ul>
<li>the shell option <a href="http://wiki.bash-hackers.org/internals/shell_options#login_shell">login_shell</a> is
set</li>
</ul>
<p><em><strong>Related switches:</strong></em>
-
</p>
<ul>
<li>--noprofile disables reading of all profile files</li>
</ul>
<h3>Interactive shell</h3>
-
<p>When Bash starts as an interactive non-login shell, it reads and executes
commands from ~/.bashrc. This file should contain, for example, aliases,
since they need to be defined in every shell as they're not inherited from
@@ -56,13 +51,11 @@
The classic way to have a system-wide rc file is to source /etc/bashrc
from every user's ~/.bashrc.</p>
<p><em><strong>Methods to test for interactive-shell mode:</strong></em>
-
</p>
<ul>
<li>the special parameter $- contains the letter i (lowercase I)</li>
</ul>
<p><em><strong>Related switches:</strong></em>
-
</p>
<ul>
<li>-i forces the interactive mode</li>
@@ -72,7 +65,6 @@
~/.bashrc)</li>
</ul>
<h3>SH mode</h3>
-
<p>When Bash starts in SH compatiblity mode, it tries to mimic the startup
behaviour of historical versions of sh as closely as possible, while conforming
to the POSIX® standard as well. The profile files read are /etc/profile
@@ -82,7 +74,6 @@
file.</p>
<p>After the startup files are read, Bash enters the <a href="http://wiki.bash-hackers.org/scripting/bashbehaviour#posix_run_mode">POSIX(r) compatiblity mode (for running, not for starting!)</a>.</p>
<p><em><strong>Bash starts in sh compatiblity mode when:</strong></em>
-
</p>
<ul>
<li>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html
index 050bbcc561..d3730e92f3 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html
@@ -14,35 +14,62 @@
<div class="ck-content">
<p>Documentation: <a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html">http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html</a>
-
</p><pre><code class="language-text-x-sh">#!/bin/bash
+
+
+
+
# This script opens 4 terminal windows.
+
+
+
+
i="0"
+
+
+
+
while [ $i -lt 4 ]
+
+
+
+
do
+
+
+
+
xterm &amp;
+
+
+
+
i=$[$i+1]
+
+
+
+
done</code></pre>
</div>
</div>
diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html
index 4b51ab5be7..1a977bccc8 100644
--- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html
+++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html
@@ -20,7 +20,6 @@
href="https://en.wikipedia.org/wiki/Node.js#cite_note-b1-31">[31]</a>Developers can create scalable servers without using <a href="https://en.wikipedia.org/wiki/Thread_(computing)">threading</a>,
by using a simplified model of <a href="https://en.wikipedia.org/wiki/Event-driven_programming">event-driven programming</a> that
uses callbacks to signal the completion of a task.<a href="https://en.wikipedia.org/wiki/Node.js#cite_note-b1-31">[31]</a>
-
</p>
</div>
</div>
diff --git a/apps/edit-docs/demo/style.css b/apps/edit-docs/demo/style.css
index 2e961cdb7a..2bbd4cdb32 100644
--- a/apps/edit-docs/demo/style.css
+++ b/apps/edit-docs/demo/style.css
@@ -121,10 +121,13 @@
}
.ck-content hr{
+ vertical-align:middle;
background:#dedede;
border:0;
+ width:100%;
height:4px;
margin:15px 0;
+ display:inline-block;
}
:root{
@@ -464,10 +467,54 @@
.ck-content .media{
clear:both;
min-width:15em;
- margin:.9em 0;
+ margin:.9em auto;
+ display:block;
+}
+
+.ck-content .media:has( > div[data-oembed-url*="open.spotify.com"]){
+ width:300px;
+ min-width:286px;
+}
+
+.ck-content .media.media_resized{
+ box-sizing:border-box;
+ max-width:100%;
display:block;
}
+.ck-content .media.media_resized > div[data-oembed-url]{
+ width:100%;
+}
+
+:root{
+ --ck-content-media-style-spacing:1.5em;
+}
+
+.ck-content .media.media-style-align-left, .ck-content .media.media-style-align-right{
+ clear:none;
+ width:100%;
+}
+
+.ck-content .media.media-style-align-left{
+ float:left;
+ margin-right:var(--ck-content-media-style-spacing);
+}
+
+.ck-content .media.media-style-align-right{
+ float:right;
+ margin-left:var(--ck-content-media-style-spacing);
+}
+
+.ck-content .media.media-style-block-align-left{
+ margin-left:0;
+ margin-right:auto;
+}
+
+.ck-content .media.media-style-block-align-right{
+ margin-left:auto;
+ margin-right:0;
+}
+
:root{
--ck-content-color-mention-background:#9900301a;
--ck-content-color-mention-text:#990030;
diff --git a/apps/server/src/assets/db/demo.zip b/apps/server/src/assets/db/demo.zip
index 5556f4971b..494535351f 100644
Binary files a/apps/server/src/assets/db/demo.zip and b/apps/server/src/assets/db/demo.zip differ