markdown-code-hashtags
1.0.2 • Public • Published
markdown-code-hashtags
Convert every #hashtag
to a link.
Helpful when writing docs in markdown.
Installation
$ npm install markdown-code-hashtags
Usage
const hashtags = require('markdown-code-hashtags');
hashtags(
'Look! A `#hashtag`!'
);
You can also configure the thing:
const hashtags = require('markdown-code-hashtags').custom;
hashtags({hash: '@', swallow: true, urlBase: '/custom/'},
'Got a different `@link` here.'
);
See also
- erase – Remove part of a markdown/HTML document.
License
MIT © Studio B12 GmbH
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.2 | 3 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.2 | 3 | |
1.0.1 | 0 | |
1.0.0 | 0 | |
Package Sidebar
Install
npm i markdown-code-hashtags
Weekly Downloads