Frontmatter Markdown Links

approved

by Michael Naumov

Adds support for markdown links in frontmatter.

80 stars16,446 downloadsUpdated 11d agoMIT

Frontmatter Markdown Links

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

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

Demo vault

A demo vault with usage examples ships with every release. You can access it via any of the following:

  1. Running the Frontmatter Markdown Links: Open demo vault command.
  2. Downloading frontmatter-markdown-links-demo-vault-<version>.zip (<version> is the release version) from the Releases.
  3. Browsing its source in demo-vault/ in this repository.

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)"
---

Multiple links per property

The plugin allows to use multiple links (wikilinks, markdown links, external links) in one property.

---
foo: "[[bar]] baz [[qux]]"
---

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

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

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.