-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown - adding classname to elements #403
Comments
I believe this is added to v3 with custom syntax. Particularly PR #1476 and curly injection. |
Curly-injection works to apply the Thus, an author could brew That said, there is a suggested variation to |
Added to the V3 changelog finally. Closing. |
I recently started playing with some markdown converters (nodejs) as I'm working on a GMing tool. To clean up the css and such I wanted to add class styles to blockquotes, specifically so I can create GM Note boxes and Description boxes easily.
Markdown Extra allows you to add "Id's" to elements and PHP markdown allows you to add classes. I grabbed the "Showdown.js" converter and with some simple reg-ex was able to add classnames to block quotes using the below syntax.
Just thought I would share as it may make it easier for your project to customize the markdown css as I know you are/were having problems with it.
I am looking to modify it a bit more to allow classes to be added to other elements as well.
Additional Details
Classname Appended to the first line of the start of a blockquote,
As you can see by the screenshot below I can easily nest the boxes and other elements.
The text was updated successfully, but these errors were encountered: