Skip to content

markdown-it plugin to add attributes to all rendered elements

License

Notifications You must be signed in to change notification settings

privatenumber/markdown-it-add-attrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

markdown-it plugin to add attributes to all rendered elements

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published