Skip to content

Commit 9e1640b

Browse files
committed
Make language spec optional
1 parent cc80abd commit 9e1640b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blacken_docs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
)
2929
MYST_RE = re.compile(
3030
r"(?P<before>"
31-
r"^(?P<indent>\s*)```(\s*{code-cell})?\s*(?P<lang>\w+)"
31+
r"^(?P<indent>\s*)```(\s*{code-cell})?\s*(?P<lang>\w+)?"
3232
r"(?P<yaml>\n---\n.*?\n---)?"
3333
r"\n)"
3434
r"(?P<code>.*?)"

0 commit comments

Comments
 (0)