omnivore-app / obsidian-omnivore

Obsidian plugin to fetch articles and highlights from Omnivore
MIT License
842 stars 83 forks source link

"YAMLParseError: Source contains multiple documents; please use YAML.parseAllDocuments()" #100

Open nmariano9 opened 1 year ago

nmariano9 commented 1 year ago

When setting any type of custom front matter template -- for example, simply:

---. id: {{{id}}} created: {{{date_read}}} ---.

I'm getting the following "omnivore_error" front matter instead:

---. id: 5sHP04gBKc5BngQzxRls omnivore_error: There was an error parsing the front matter template. See console for details. ---.

Upon checking the console, I get the titular error message:

YAMLParseError: Source contains multiple documents; please use YAML.parseAllDocuments()

Not much of a YAML or Python expert. Any tips on how to get around this?

sywhb commented 11 months ago

Hey @nmariano9 sorry for the late reply.

I think the template is invalid with the . behind the --- and you can try with

---
id: {{{id}}}
created: {{{date_read}}}
---

It is working locally for me