Trikzon / obsidian-frontmatter-links

An Obsidian plugin that renders links in a note's frontmatter as links.
MIT License
64 stars 8 forks source link

Multiple links in one line? #22

Closed ReaderGuy42 closed 1 year ago

ReaderGuy42 commented 1 year ago

Is there a way to have multiple links in one line?

E.g.

Author: "[[Stephen King]]", "[[J.R.R. Tolkien]]"

This works as far as the plugin is concerned, I think, but in reading mode is rendered as Invalid YAML

How can I achieve this?

Thanks :)

Trikzon commented 1 year ago

It should work like this:

Author: ["[[Stephen King]]", "[[J.R.R. Tolkien]]"]

or

Author: 
- "[[Stephen King]]"
- "[[J.R.R. Tolkien]]"

https://www.w3schools.io/file/yaml-arrays/

ReaderGuy42 commented 1 year ago

Oh, that's perfect, thank you! :)