/marked

Custom links for md

Primary LanguageJavaScriptOtherNOASSERTION

Marked with custom links

npm

Installation

CLI: npm install -g marked4

In-browser: npm install marked4 --save

New test cases:

[[Empty|/url/]]

[[Empty | /url/]]

[[Hello world | aphanum:hello-world]]

[[Hello world]]

[[One more  world]]

[[ Marked | https://github.com/markedjs/marked/blob/master/lib/marked.js]]

Results:

<p><a href="/url/">Empty</a></p>

<p><a href="/url/">Empty</a></p>

<p><a href="aphanum:hello-world">Hello world</a></p>

<p><a href="hello-world">Hello world</a></p>

<p><a href="one-more-world">One more  world</a></p>

<p><a href="https://github.com/markedjs/marked/blob/master/lib/marked.js">Marked</a></p>