zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.52k stars 1.88k forks source link

markdown files are imported with bunch of htmls tags #733

Closed gerroon closed 5 years ago

gerroon commented 5 years ago

Hi

I exported some markdown files (as .md) from Joplin and added them to tar. Then I imported into Trilium. The note type they say they are markdown but in reality theyn are garbled with bunch of irrelevant html tags. See the sample imported page from Trilium.

<ol>
<li>Welcome to Joplin! 🗒️</li>
</ol>
<h1>Welcome to Joplin! 🗒️</h1>
<p>Joplin is a free, open source note taking and to-do application, which helps you write and organise your notes, and synchronise them between your devices. The notes are searchable, can be copied, tagged and modified either from the applications directly or from your own text editor. The notes are in <a href="https://joplin.cozic.net/#markdown">Markdown format</a>. Joplin is available as a <strong>💻 desktop</strong>, <strong>📱 mobile</strong> and <strong>🔡 terminal</strong> application.</p>
<p>The notes in this notebook give an overview of what Joplin can do and how to use it. In general, the three applications share roughly the same functionalities; any differences will be clearly indicated.</p>
<p><img src="../_resources/5c05172554194f95b60971f6d577cc1a.png" alt="" /></p>
<h2>Joplin is divided into three parts</h2>
<p>Joplin has three main columns:</p>
<ul>
<li><strong>Sidebar</strong> contains the list of your notebooks and tags, as well as the synchronisation status.</li>
<li><strong>Note List</strong> contains the current list of notes - either the notes in the currently selected notebook, the notes in the currently selected tag, or search results.</li>
<li><strong>Note Editor</strong> is the place where you write your notes in Markdown, with a viewer showing what the note will look like. You may also use an <a href="https://joplin.cozic.net/#external-text-editor">external editor</a> to edit notes. For example, if you like WYSIWYG editors, you can use something like Typora as an external editor and it will display the note as well as any embedded images.</li>
zadam commented 5 years ago

Can you please attach sample source .md file produced by Joplin? Thanks.

gerroon commented 5 years ago

Sure, try these when you have time.

md.zip

gerroon commented 5 years ago

Btw please disable the 4th option so those are imported as markdown not as simple text files.

zadam commented 5 years ago

Fixed in stable branch.

gerroon commented 5 years ago

Cool, I hope you could get a release out soon to try this.

thanks