Skip to content

Build your personal knowledge base with Trilium Notes

docs(user): mention code blocks for OneNote import

Elian Doran84698d6a8c5d
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.html
index 77136bd4e2..f93bef39ef 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.html
@@ -47,16 +47,16 @@
<li>The list is not fixed, meaning that new options can be easily added from
the promoted attribute.</li>
<li>Renaming an option does not change the existing values since the value
- is stored as text. Consider a <a href="#root/pOsGYCXsbNQG/tC7s2alapj8V/_help_ivYnonVFBxbQ">bulk rename</a>.</li>
+ is stored as text. Consider a <a href="#root/_help_ivYnonVFBxbQ">bulk rename</a>.</li>
<li>The items do not have a custom color or icon. This is intentional as selects
are meant to be light-weight. For a more customizable option, consider
- using&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_Cq5X6iKQop6R">Relations</a>&nbsp;instead
+ using&nbsp;<a class="reference-link" href="#root/_help_Cq5X6iKQop6R">Relations</a>&nbsp;instead
which use notes as items and those notes can be colorized and also carry
an icon.</li>
</ul>
</li>
- <li><em>Date, </em>which provides a date picker.</li>
- <li><em>Date &amp; Time, </em>which provides a date &amp; time picker.</li>
+ <li><em>Date,</em> which provides a date picker.</li>
+ <li><em>Date &amp; Time,</em> which provides a date &amp; time picker.</li>
<li><em>Time,</em> which provides a time picker.</li>
<li><em>URL,</em> which provides a button to open the web address in a new
window.</li>
@@ -67,8 +67,8 @@
<li><em>Color</em>, which provides a color picker and a way to remove the
value.</li>
<li><em>Relation</em>, which points to another note and uses&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_Cq5X6iKQop6R">Relations</a>&nbsp;instead
- of&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_HI6GBBIduIgv">Labels</a>.</li>
+ href="#root/_help_Cq5X6iKQop6R">Relations</a>&nbsp;instead of&nbsp;<a class="reference-link"
+ href="#root/_help_HI6GBBIduIgv">Labels</a>.</li>
</ul>
<aside class="admonition note">
<p>For label-based attributes, these types are not enforced by the attribute
@@ -106,8 +106,8 @@
<table>
<thead>
<tr>
- <th>&nbsp;</th>
- <th>&nbsp;</th>
+ <th></th>
+ <th></th>
</tr>
</thead>
<tbody>
@@ -186,10 +186,8 @@
inverse relation on the target note.</p>
<h2>See also</h2>
<ul>
- <li>
- <p>The&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/GTwFsgaA0lCt/_help_2FvYrpmOXm29">Table</a>&nbsp;collection
- makes heavy use of promoted attributes to define the columns of the table,
- since they already carry the type information. When made inheritable, it's
- also easy to change those fields when the child notes are opened.</p>
- </li>
+ <li>The&nbsp;<a class="reference-link" href="#root/_help_2FvYrpmOXm29">Table</a>&nbsp;collection
+ makes heavy use of promoted attributes to define the columns of the table,
+ since they already carry the type information. When made inheritable, it's
+ also easy to change those fields when the child notes are opened.</li>
</ul>
\ No newline at end of file
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/Microsoft OneNote.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Microsoft OneNote.html
index 90bbb737aa..a3cac127ed 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Microsoft OneNote.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Microsoft OneNote.html
@@ -24,12 +24,19 @@
<p>The following features are preserved by Trilium during the import process:</p>
<ul>
<li>Basic formatting (bold, italic, underline, strikethrough, subscript, super
- script, inline code, font sizes, headings, colors, highlights).
+ script, font sizes, headings, colors, highlights).
<ul>
<li>Black-colored text is intentionally stripped to allow it to work in dark
themes.</li>
</ul>
</li>
+ <li>Inline code is automatically detected and formatted. Paragraphs that use
+ the Code style are also converted to&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/iPIMuisry3hd/UYuUB1ZekNQU/_help_QxEyIjRBizuC">Code blocks</a>.
+ <ul>
+ <li>Unfortunately the indentation of the code might be lost because the information
+ is simply not present in the data from the Microsoft API.</li>
+ </ul>
+ </li>
<li><a class="reference-link" href="#root/_help_S6Xx8QIWTV66">Lists</a>&nbsp;with
different bullet types.</li>
<li><a class="reference-link" href="#root/_help_NdowYOC1GFKS">Tables</a>
@@ -151,7 +158,7 @@
<li>The order of the sections (and section groups) is not available, the sections
are ordered by creation date instead.</li>
<li>Revision history.</li>
- <li>Paragraph indentation.</li>
+ <li>Paragraph indentation, as well as code block indentation.</li>
<li>Section colors.</li>
<li>Drawings inside titles, the title might appear incomplete or “Untitled”.</li>
</ul>
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index 488afaac00..7cafa9911a 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -7516,6 +7516,13 @@
"value": "bx bx-window-open",
"isInheritable": false,
"position": 20
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "QxEyIjRBizuC",
+ "isInheritable": false,
+ "position": 110
}
],
"format": "markdown",
@@ -16010,70 +16017,56 @@
{
"type": "relation",
"name": "internalLink",
- "value": "BlN9DFI679QC",
+ "value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
- "value": "bwZpz2ajCEwO",
+ "value": "Cq5X6iKQop6R",
"isInheritable": false,
"position": 30
},
{
"type": "relation",
"name": "internalLink",
- "value": "GTwFsgaA0lCt",
+ "value": "HI6GBBIduIgv",
"isInheritable": false,
"position": 40
},
{
"type": "relation",
"name": "internalLink",
- "value": "zP3PMqaG71Ct",
+ "value": "BlN9DFI679QC",
"isInheritable": false,
"position": 50
},
{
"type": "relation",
"name": "internalLink",
- "value": "R9pX4DGra2Vt",
+ "value": "bwZpz2ajCEwO",
"isInheritable": false,
"position": 60
},
- {
- "type": "label",
- "name": "shareAlias",
- "value": "promoted-attributes",
- "isInheritable": false,
- "position": 10
- },
- {
- "type": "label",
- "name": "iconClass",
- "value": "bx bx-table",
- "isInheritable": false,
- "position": 20
- },
{
"type": "relation",
"name": "internalLink",
- "value": "Cq5X6iKQop6R",
+ "value": "GTwFsgaA0lCt",
"isInheritable": false,
"position": 70
},
{
"type": "relation",
"name": "internalLink",
- "value": "HI6GBBIduIgv",
+ "value": "zP3PMqaG71Ct",
"isInheritable": false,
"position": 80
},
{
"type": "relation",
"name": "internalLink",
- "value": "ivYnonVFBxbQ",
+ "value": "R9pX4DGra2Vt",
"isInheritable": false,
"position": 90
},
@@ -16083,6 +16076,20 @@
"value": "2FvYrpmOXm29",
"isInheritable": false,
"position": 100
+ },
+ {
+ "type": "label",
+ "name": "shareAlias",
+ "value": "promoted-attributes",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-table",
+ "isInheritable": false,
+ "position": 20
}
],
"format": "markdown",
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Microsoft OneNote.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Microsoft OneNote.md
index 847f07e599..ab6e767cce 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Microsoft OneNote.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Microsoft OneNote.md
@@ -15,8 +15,10 @@ Trilium allows importing from OneNote. Currently the only mechanism supported is
The following features are preserved by Trilium during the import process:
-* Basic formatting (bold, italic, underline, strikethrough, subscript, super script, inline code, font sizes, headings, colors, highlights).
+* Basic formatting (bold, italic, underline, strikethrough, subscript, super script, font sizes, headings, colors, highlights).
* Black-colored text is intentionally stripped to allow it to work in dark themes.
+* Inline code is automatically detected and formatted. Paragraphs that use the Code style are also converted to <a class="reference-link" href="../../../Note%20Types/Text/Developer-specific%20formatting/Code%20blocks.md">Code blocks</a>.
+ * Unfortunately the indentation of the code might be lost because the information is simply not present in the data from the Microsoft API.
* <a class="reference-link" href="../../../Note%20Types/Text/Lists.md">Lists</a> with different bullet types.
* <a class="reference-link" href="../../../Note%20Types/Text/Tables.md">Tables</a>
* Cell backgrounds are preserved, including a best-effort hue correction because the colors returned by the Graph API are sometimes incorrect.
@@ -87,7 +89,7 @@ The following are known limitations due to how the information comes from the im
* The order of the sections (and section groups) is not available, the sections are ordered by creation date instead.
* Revision history.
-* Paragraph indentation.
+* Paragraph indentation, as well as code block indentation.
* Section colors.
* Drawings inside titles, the title might appear incomplete or “Untitled”.