Make simple markdown-it plugins easier.
Usage:
var md = var Plugin = var plugin = Plugin // regexp to match /@/ // this function will be called when something matches { var url = 'http://example.org/u/' + match1 return '<a href="' + utils + '">' + utils + '</a>' } // prints out:// <p>hello <a href="http://example.org/u/user">user</a></p>
Fair warning:
- it could be slower than you expect
- it is a draft, breaking changes might happen