wiki-linkify

1.0.1 • Public • Published

wiki-linkify

Takes Wiki content like this:

Welcome to the SuperDuper wiki, where we categorize SuperDuper things.

and turns it into this:

Welcome to the <a href="/SuperDuper">SuperDuper</a> wiki, where we categorize <a href="/SuperDuper">SuperDuper</a> things.

Install

npm install wiki-linkify

Usage

var wikiLinkify = require('wiki-linkify');
var originalContent = "Welcome to the SuperDuper wiki, where we categorize SuperDuper things.";
var wikiContent = wikiLinkify(originalContent);
console.log(wikiContent);

The above example displays:

Welcome to the <a href="/SuperDuper">SuperDuper</a> wiki, where we categorize <a href="/SuperDuper">SuperDuper</a> things.

Readme

Keywords

none

Package Sidebar

Install

npm i wiki-linkify

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • airportyh