1.0.2 • Published 9 years ago

markdown-code-hashtags v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Coveralls – test coverage
Travis – build status
David – status of dependencies
Stability: stable
Code style: airbnb

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`!'
);
//» 'Look! A [`#hashtag`](#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.'
);
//» 'Got a different [`link`](/custom/link) here.'

See also

  • erase – Remove part of a markdown/HTML document.

License

MIT © Studio B12 GmbH

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago