https://github.com/mnaoumov/obsidian-frontmatter-markdown-links
Obsidian Plugin that adds support for markdown links in frontmatter
https://github.com/mnaoumov/obsidian-frontmatter-markdown-links
obsidian obsidian-md obsidian-plugin
Last synced: 12 days ago
JSON representation
Obsidian Plugin that adds support for markdown links in frontmatter
- Host: GitHub
- URL: https://github.com/mnaoumov/obsidian-frontmatter-markdown-links
- Owner: mnaoumov
- License: mit
- Created: 2024-12-08T00:43:44.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-10T02:00:59.000Z (9 months ago)
- Last Synced: 2025-02-10T03:19:28.106Z (9 months ago)
- Topics: obsidian, obsidian-md, obsidian-plugin
- Language: TypeScript
- Homepage:
- Size: 1.18 MB
- Stars: 21
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Frontmatter Markdown Links
This is a plugin for [Obsidian](https://obsidian.md/) that adds support for markdown links in frontmatter.
## Features
### Markdown links in frontmatter
```yaml
---
# 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]()"
externalUrlWithAlias: "[Alias](https://example.com)"
externalUrlWithAngleBrackets: ""
embeddedWikilink: "![[EmbeddedWikilink]]"
embeddedMarkdownLink: ""
embeddedExternalUrl: ""
---
```
The feature of this plugin is on high demand on Obsidian forum:
- [Properties: Support INTERNAL Markdown links](https://forum.obsidian.md/t/properties-support-external-markdown-links/76918)
- [Properties: Support EXTERNAL Markdown links](https://forum.obsidian.md/t/properties-support-internal-markdown-links/63825/)
### 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`.
```yaml
---
# 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: ""
externalUrlWithoutQuotes: https://example.com
externalUrlWithoutQuotesAndWithAngleBrackets:
# 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: ""
embeddedExternalUrl: ""
---
```
### Multiple links per property
The plugin allows to use multiple links (wikilinks, markdown links, external links) in one property.
```yaml
---
foo: "[[bar]] baz [[qux]]"
---
```
## Installation
The plugin is available in [the official Community Plugins repository](https://obsidian.md/plugins?id=frontmatter-markdown-links).
### Beta versions
To install the latest beta release of this plugin (regardless if it is available in [the official Community Plugins repository](https://obsidian.md/plugins) or not), follow these steps:
1. Ensure you have the [BRAT plugin](https://obsidian.md/plugins?id=obsidian42-brat) installed and enabled.
2. Click [Install via BRAT](https://intradeus.github.io/http-protocol-redirector?r=obsidian://brat?plugin=https://github.com/mnaoumov/obsidian-frontmatter-markdown-links).
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:
```js
window.DEBUG.enable('frontmatter-markdown-links');
```
For more details, refer to the [documentation](https://github.com/mnaoumov/obsidian-dev-utils/blob/main/docs/debugging.md).
## Support
## License
© [Michael Naumov](https://github.com/mnaoumov/)
