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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i wiki-linkify

      Weekly Downloads

      2

      Version

      1.0.1

      License

      ISC

      Last publish

      Collaborators

      • airportyh