Skip to content

Commit

Permalink
Make language spec optional
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Aug 1, 2023
1 parent cc80abd commit 9e1640b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blacken_docs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)
MYST_RE = re.compile(
r"(?P<before>"
r"^(?P<indent>\s*)```(\s*{code-cell})?\s*(?P<lang>\w+)"
r"^(?P<indent>\s*)```(\s*{code-cell})?\s*(?P<lang>\w+)?"
r"(?P<yaml>\n---\n.*?\n---)?"
r"\n)"
r"(?P<code>.*?)"
Expand Down

0 comments on commit 9e1640b

Please sign in to comment.