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

Remove quotation marks from Wikilink #9

Closed kazdonkai closed 1 year ago

kazdonkai commented 1 year ago

Currently, Wikilink is in citation format, but the bracket name allows us to determine that it is Wikilink, so could you please make it so that it is linked even if it is not in citation format? "[[Wikilink]]" → [[Wikilink]]

Trikzon commented 1 year ago

YAML doesn't parse wiki links as a wiki link. It attempts to parse it as an array and fails. This causes the following to not work when using, for example, dataview to process the metadata.

---
link: [[Wikilink]]
---

Because it isn't correct YAML, it would be wrong for this plugin to treat it as if it was.

Instead, you should follow the correct YAML style and do the following:

---
link: "[[Wikilink]]"
---