Skip to content

Markdown-it plugin to recognize Mediawiki links ([[text]])

License

Notifications You must be signed in to change notification settings

binyamin/markdown-it-wikilinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown-it Wikilinks

Markdown-it plugin to recognize Mediawiki links ([[text]])

npm version badge

Installing

$ npm install --save markdown-it @binyamin/markdown-it-wikilinks

Usage

const markdownIt = require("markdown-it");
const markdownItWikilinks = require("@binyamin/markdown-it-wikilinks");

const md = new markdownIt({ linkify: true }).use(markdownItWikilinks, {
    base: "/notes/" // Determines the link url. Prepended directly to page slug
});
//...

Maintenance

This is just a personal project, so I don't expect contributions. That said, I'm open to all suggestions.

Legal

All source-code is provided under the terms of the MIT license. Copyright 2020-2022 Binyamin Green.

About

Markdown-it plugin to recognize Mediawiki links ([[text]])

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published