@malecjan, when I said
backlink formatting already used
and
backlink syntax
all I meant was the wiki style bracket syntax [[link]]
that Obsidian already uses for links.
Also, thanks for the reference to Add support for link types - #31 by malecjan. It inspired me to refine my original idea of including the [[link]]
syntax within YAML. I think that including the bracketed [[link]]
syntax within YAML is messy and unclean. Imagine a YAML sequence of links like so:
---
is a: [[Movie]]
director: [[Ridley Scott]]
run time: 2hr
IMDB rating: 7.8
genres: [[[crime]], [[drama]], [[mystery]]] <-- fairly messy
---
This array of links within YAML could also be parsed as nested array’s containing a single item.
I think I much better approach that aligns with how @WhiteNoise said YAML link support will probably be added to Obsidian is to use a YAML anchor and alias like so:
---
is a: &l1 Movie
director: &l2 Ridley Scott
run time: 2hr
IMDB rating: 7.8
genres: &l3 [crime, drama, mystery]
related: [a link, another link, *l1, *l2, *l3] <-- Obsidian recognized links
---
The former YAML would be equivalent to the following YAML:
---
is a: Movie
director: Ridley Scott
run time: 2hr
IMDB rating: 7.8
genres: [crime, drama, mystery]
related: [a link, another link, Movie, Ridley Scott, crime, drama, mystery] <-- Obsidian recognized links
---
Additionally Obsidian should support a custom YAML tag such as !link
. In the following example links would be parsed equivalently to the previous two examples.
---
is a: !link Movie <-- Obsidian recognized link
director: !link Ridley Scott <-- Obsidian recognized link
run time: 2hr
IMDB rating: 7.8
genres: !link [crime, drama, mystery] <-- Obsidian recognized link
related: [a link, another link] <-- Obsidian recognized links
---