sc-markdown-it-hashmention
v0.3.24
Published
Flowdock hashtag and mention parser for markdown-it
Downloads
6
Maintainers
Readme
sc-markdown-it-hashmention
Forked
Some changes.
hashtag (
#tag
), mentions (@user
) plugin for markdown-it markdown parser.
@user
=><a class="mention">@user</a>
#hashtag
=><a class="hashtag">#hashtag</a>
Install
node.js:
npm install markdown-it-hashmention --save
var md = require('markdown-it')().use(require('markdown-it-hashmention'));
md.render('Test #hahstag @user'); // => 'Test <a class="hashtag">#hashtag</a> <a class="mention">@user</a>'
Tests
Tests are run with npm:
npm install
npm test
Credits
This is forked from https://github.com/flowdock/markdown-it-flowdock, only url autolinking removed.