alexjv89 / markdown-it-obsidian

Convert obsidian wiki links to markdown links
MIT License
48 stars 5 forks source link

Installation #1

Open everythingability opened 3 years ago

everythingability commented 3 years ago

Hi,

I dropped this in my plugins folder and nothing happened.

Could you add some installation instructions,

thanks

Tom

BorisAnthony commented 2 years ago

This worked for me (after digging through the plugin creator's website repos…)

run

npm i markdown-it-obsidian

then add this to your .eleventy.js config… inside the module.exports = function(eleventyConfig) { :

  let markdownIt = require("markdown-it");
  let markdownItObsidian = require("markdown-it-obsidian")();
  let markdownItOptions = {
    html: true,
  };
  let markdownLib = markdownIt(markdownItOptions)
    .use(markdownItObsidian)

  eleventyConfig.setLibrary("md", markdownLib);