blacken-docs icon indicating copy to clipboard operation
blacken-docs copied to clipboard

Transform pandoc-style class injection/fenced code blocks

Open klieret opened this issue 3 years ago • 0 comments

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.

klieret avatar Jul 27 '22 20:07 klieret