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 17, 2023
1 parent efaa779 commit 777809b
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 @@ -30,7 +30,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 777809b

Please sign in to comment.