Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binyamin/markdown-it-wikilinks
Markdown-it plugin to recognize Mediawiki links ([[text]])
https://github.com/binyamin/markdown-it-wikilinks
Last synced: 24 days ago
JSON representation
Markdown-it plugin to recognize Mediawiki links ([[text]])
- Host: GitHub
- URL: https://github.com/binyamin/markdown-it-wikilinks
- Owner: binyamin
- License: mit
- Created: 2020-12-27T03:30:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T16:48:13.000Z (5 months ago)
- Last Synced: 2024-09-28T10:24:11.962Z (about 1 month ago)
- Language: JavaScript
- Size: 167 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - binyamin/markdown-it-wikilinks - Markdown-it plugin to recognize Mediawiki links ([[text]]) (JavaScript)
README
# Markdown-it Wikilinks
> Markdown-it plugin to recognize Mediawiki links (`[[text]]`)
[![npm version badge](https://badgen.net/npm/v/@binyamin/markdown-it-wikilinks)](https://www.npmjs.com/package/@binyamin/markdown-it-wikilinks)
## Installing
```console
$ npm install --save markdown-it @binyamin/markdown-it-wikilinks
```## Usage
```js
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](https://github.com/binyamin/markdown-it-wikilinks/tree/main/LICENSE). Copyright 2020-2022 Binyamin Green.