I know this is an opinionated PR, but, I propose to replace the renderer from marked to markdown-it.
Why?
markdown-it is the second most-popular JS Markdown renderer (see here)
markdown-it provides more features and easy extendibility via community-written plugins (see here)
One useful plugin in particular would be markdown-it-attrs which allows one to add CSS classes, HTML attributes and identifiers to any Markdown element with this syntax: {.class #identifier attr=value attr2="spaced value"}
Could resolve #111 by adding {.fragment} class attributes along with scripts and styles (similar to cleaver-select-theme but without the need for explicit HTML)
I know this is an opinionated PR, but, I propose to replace the renderer from
marked
tomarkdown-it
.Why?
markdown-it-attrs
which allows one to add CSS classes, HTML attributes and identifiers to any Markdown element with this syntax:{.class #identifier attr=value attr2="spaced value"}
{.fragment}
class attributes along with scripts and styles (similar tocleaver-select-theme
but without the need for explicit HTML)markdown-it-mathjax
markdown-it-emoji
Implications?