blacken-docs
blacken-docs copied to clipboard
Transform pandoc-style class injection/fenced code blocks
Thanks for this really nice package @asottile .
Would you consider accepting added support for snippets of the following form:
~~~
def python():
pass
~~~
{: .language-python}
It's being referred to as "fenced code blocks" or "pandoc-style".
It's being recognized by kramdown, for example. You can also check its use with sourcegraph.
I have already implemented the corresponding regexp in my fork, so I could add the unit tests, documentation, and open a PR here.