omnivore-app / logseq-omnivore

Logseq plugin to fetch articles and highlights from Omnivore
MIT License
297 stars 36 forks source link

Article and Highlight template `note` variable breaks template with complex text #176

Open mbaker3 opened 10 months ago

mbaker3 commented 10 months ago

Importing an article with a note or highlight note, containing bullet points and/or : characters causes the template to fail at the invalid character.

For example, if you're importing an article with the following note it will fail after the :. Not sure if it's the colon character or the bullet point that breaks the import.

Some text 

And other thoughts:
 - Thought 1
 - Thought 2

Some more text. 

Expected Result

The importer should be able to get all text written in Omnivore's note fields even if all of the formatting characters cannot be successfully brought through to logseq.

mbaker3 commented 10 months ago

As a temporary workaround, in your template, you can put your notes in a codeblock (```) to make sure all of the content makes it through into logseq.

Ex:

## {{{title}}}
{{#note}}

{{{note}}}

{{/note}}