[go: up one dir, main page]

markdown-it-add-attrs

0.0.1 • Public • Published

markdown-it-add-attrs

markdown-it plugin to add attributes to all rendered elements

🙋 Why?

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

🚀 Install

$ npm i markdown-it-add-attrs

📘 Usage

import addAttrsPlugin from 'markdown-it-add-attrs';
 
md.use(addAttrsPlugin, {
 
    // This "class" attribute will be added to all markdown elements
    class: 'md-doc',
});
 

✒️ License

MIT

Package Sidebar

Install

npm i markdown-it-add-attrs

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

4.06 kB

Total Files

4

Last publish

Collaborators

  • hirokiosame