Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
maxschulz-COL opened this issue Jul 30, 2024 · 1 comment
Closed

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

maxschulz-COL opened this issue Jul 30, 2024 · 1 comment

Comments

@maxschulz-COL
Copy link

maxschulz-COL commented Jul 30, 2024

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.

@adamchainz
Copy link
Owner

Dupe of #274 / #281.

Since you’re another report, I think we could consider adding support. The next step would be to rebase and finish up the work for #274 (docs, changelog note, more tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants