cnmd
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

CNMD: Cross-Notation Markdown

CNMD is a syntax extension of standard markdown. It allows you setup handlers to automatically generate links.

CNMD is widely used in kenpusney/wiki to cross ref resources in the site, and other sites like GitHub, Wikipedia, as well as Twitter etc.

Syntax

CNMD cross notation is pretty simple, just a colunm seperated link tag, e.g.:

[wiki:JavaScript]()

means, it will call wiki handler and provide the link of JavaScript.

and the wiki handler will simply be:

(postfix) => `https://en.wikipedia.org/wiki/${postfix}`

in this case, the CNMD notation will generate follow html:

<a href="https://en.wikipedia.org/wiki/JavaScript" title="JavaScript">JavaScript</a>

Readme

Keywords

none

Package Sidebar

Install

npm i cnmd

Weekly Downloads

7

Version

0.1.1

License

MIT

Unpacked Size

5.12 kB

Total Files

6

Last publish

Collaborators

  • kenpusney