arve0 / markdown-it-attrs

Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes
MIT License
300 stars 58 forks source link

Is there a way to add a default class? #151

Open antgel opened 1 year ago

antgel commented 1 year ago

Hi, I took the liberty of not using the issue template because this seems to be a feature scope question, hope that's okay.

I'm using an 11ty theme that incorporates Bootstrap, hence I'd like some tags to include default classes e.g. <blockquote class="blockquote">. Is there a way to do this with this plugin?

I tried to do it with markdown-it but didn't get very far: https://github.com/markdown-it/markdown-it/issues/117#issuecomment-1479686759