Skip to content

Obsidian Plugin that adds support for markdown links in frontmatter

License

Notifications You must be signed in to change notification settings

mnaoumov/obsidian-frontmatter-markdown-links

Repository files navigation

Frontmatter Markdown Links

This is a plugin for Obsidian that adds support for markdown links in frontmatter.

Features

Markdown links in frontmatter

---
# Obsidian supports natively
wikilink: "[[Wikilink]]"
wikilinkWithAlias: "[[Wikilink|Alias]]"
externalUrl: "https://example.com"

# Provided by this plugin
markdownLink: "[Alias](MarkdownLink.md)"
markdownLinkWithSpace: "[Alias with space](MarkdownLink%20with%20space.md)"
markdownLinkWithAngleBrackets: "[Alias with space](<MarkdownLink with space.md>)"
externalUrlWithAlias: "[Alias](https://example.com)"
externalUrlWithAngleBrackets: "<https://example.com>"
embeddedWikilink: "![[EmbeddedWikilink]]"
embeddedMarkdownLink: "![Alias](EmbeddedMarkdownLink.md)"
embeddedExternalUrl: "![Alias](https://picsum.photos/600)"
---

The feature of this plugin is on high demand on Obsidian forum:

Backlinks

The backlinks are now working for the markdown links in frontmatter.

Clickable frontmatter links

The links in frontmatter are now clickable in all modes: Source mode, Live Preview, and Reading.

---
# Wikilinks and markdown links only inside quotes
wikilink: "[[Wikilink]]"
markdownLink: "[Alias](MarkdownLink.md)"
externalUrlWithAlias: "[Alias](https://example.com)"

# External urls work with and without quotes
externalUrlWithQuotes: "https://example.com"
externalUrlWithQuotesAndAngleBrackets: "<https://example.com>"
externalUrlWithoutQuotes: https://example.com
externalUrlWithoutQuotesAndWithAngleBrackets: <https://example.com>

# Multiline lists
multilineList:
  - Non-clickable
  - "[[Wikilink]]"
  - "[Alias](MarkdownLink.md)"
  - https://example.com

# Inline lists
inlineList: ["Non-clickable", "[[Wikilink]]", "[Alias](MarkdownLink.md)", "https://example.com"]

# Embeds
embeddedWikilink: "![[EmbeddedWikilink]]"
embeddedMarkdownLink: "![Alias](EmbeddedMarkdownLink.md)"
embeddedExternalUrl: "![Alias](https://picsum.photos/600)"
---

Installation

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command:

window.DEBUG.enable('frontmatter-markdown-links');

For more details, refer to the documentation.

Support

Buy Me A Coffee

License

© Michael Naumov

About

Obsidian Plugin that adds support for markdown links in frontmatter

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published