feat: add option to emit semantic HTML for alerts - #822
Conversation
Maybe! The naming of the tasklist classes there was pretty arbitrary and decided upon by whoever implemented them at the time; I kind of think Comrak itself should probably not have much in the way of opinions about classes at all, and anyone who really wants them probably wants to implement a custom formatter. But for now, we have what we have. (I'm pretty OK with breaking changes FWIW! What's the point of pre-1.0 if we can't have fun?) Thanks so much for this PR! I really appreciate it. I'll add a CLI entrypoint and merge :) |
|
This is part of Comrak v0.54.0! |
|
Thanks! This will help tools that support different markup languages! |
fixes #821.
Design question: Maybe it should be made more generic, e.g. rename it to
HtmlStyleTypeand have it affecttasklist_classestoo – for some reason you don’t add amarkdown-prefix for that class, only for alerts. But then it would be a breaking change as its default would either changerender.tasklist_classesorextension.alerts.