Skip to content

Blacken to also pick up {.python} code-blocks #357

@maxschulz-COL

Description

@maxschulz-COL

Python Version

No response

Package Version

1.18.0

Description

First of all really useful package, thanks!

So here is the issue: We discovered that while the tool can pick up a block like:

```python
def foo():
  return "poo"
\```

it does not pick up on the equivalent {.python} syntax (which allows to specify further options: https://python-markdown.github.io/extensions/fenced_code_blocks/).

We are trying to use this in mkdocs documentation, where the codeblocks carry further options, so cannot be specified as ```python.

Would this be something that could be supported?

Tagging also @maartenbreddels for visibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions