0.0.1 • Published 4 years ago

markdown-it-add-attrs v0.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

markdown-it-add-attrs

markdown-it plugin to add attributes to all rendered elements

:raising_hand: Why?

So I can specifically target the markdown using a markdown stylesheet without interfering with some of the other code in the markdown.

:rocket: Install

$ npm i markdown-it-add-attrs

:blue_book: Usage

import addAttrsPlugin from 'markdown-it-add-attrs';

md.use(addAttrsPlugin, {

	// This "class" attribute will be added to all markdown elements
	class: 'md-doc',
});

:black_nib: License

MIT