Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Using shortened links ? #13

Closed
Elaws opened this issue Aug 4, 2021 · 4 comments
Closed

Using shortened links ? #13

Elaws opened this issue Aug 4, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Elaws
Copy link

Elaws commented Aug 4, 2021

Hi,

Is there a way to use shortened links in YAML frontmatter ?

e.g. :

[LINK](URL)

@arnau
Copy link
Owner

arnau commented Aug 5, 2021

Hi @Elaws,

The only options for adding links in YAML are the ones described here https://github.com/arnau/obsidian-metatable#autolinks
with the "autolinks" config option enabled.

@Elaws
Copy link
Author

Elaws commented Aug 5, 2021

Thanks for your quick reply @arnau,

I indeed read this section and already enabled autolinks : Is there any plan to support such [LINK](URL) style links ?

More often than not, a reduced link is preferable, as a full link would take too much space (in a dataview query for e.g.).

Thanks

@arnau
Copy link
Owner

arnau commented Aug 6, 2021

I had no plans to add the ability to parse markdown links. It has the same issue as obsidian links [[link]] where [ and ] are YAML reserved characters symbolising an array. So, in case of implementing this, it would require the yaml field to be defined as a String (same rules laid out for obsidian links).

All that said, once I have a bit of free time I can give it a go, unless you want to try? :)

@arnau arnau added enhancement New feature or request help wanted Extra attention is needed labels Aug 16, 2022
@arnau
Copy link
Owner

arnau commented Oct 22, 2022

This feature has been available for a while now.

@arnau arnau closed this as completed Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants