Skip to content

Commit

Permalink
Added docs for new option.
Browse files Browse the repository at this point in the history
  • Loading branch information
carltongibson committed Dec 2, 2022
1 parent a121cc0 commit cc6ed57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -30,6 +30,7 @@ options:
Following additional parameters can be used:

- `-E` / `--skip-errors`
- `--use-sphinx-default`

`blacken-docs` will format code in the following block types:

Expand Down Expand Up @@ -60,6 +61,16 @@ Following additional parameters can be used:
print("hello world")
```

(rst using Sphinx default for blocks marked with `::`)
``rst
hello::

def hello():
print("hello world")
```
This style is enabled with the `--use-sphinx-default` option.
(rst `pycon`)
```rst
.. code-block:: pycon
Expand Down

0 comments on commit cc6ed57

Please sign in to comment.