2.0.3 • Published 7 years ago

remark-first-heading v2.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

remark-first-heading

Replace the first top-level heading in a markdown document

Usage

import remark from 'remark';
import firstHeading from 'remark-first-heading';

const r = remark().use(firstHeading, { heading: 'Correct Heading' });

const someMarkdown = '# wrong heading';
r.processSync(someMarkdown).toString();
//=> "# Correct Heading\n"

License

MIT © Sigurd Fosseng

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago