markdown-it-obsidian-link
v1.0.0
Published
This is a markdown-it plugin that allows you to create links similar to Obsidian's inner links.
Downloads
6
Readme
markdown-it-obsidian-link
This is a markdown-it plugin that allows you to create links similar to Obsidian's inner links.
Install
npm install markdown-it-obsidian-link
pnpm add markdown-it-obsidian-link
yarn add markdown-it-obsidian-link
Usage
const md = require('markdown-it')();
const obsidianLink = require('markdown-it-obsidian-link');
Example
const text = 'This is a obsidian link: [[./dir/foo.md|foo]]';
const result = md.render(text);
console.log(result);
This will output:
<p>This is a obsidian link: <a href="./dir/foo.md" class="obsidian-link">foo</a></p>