Skip to content

Commit

Permalink
Update process_notebooks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hakantapanyigit authored Dec 27, 2024
1 parent 10b05f9 commit 7ff1d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/process_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def replace_callout(match: re.Match) -> str:
# - optionally followed by "mdx-code-block",
# - optionally followed by "{=mdx}",
# - optional whitespace and line ending.
r"(?:```{3,4}(?:\s*mdx-code-block)?(?:\s*\{=mdx\})?)?\s*\r?\n?"
r"(?:```{3,4}(?:\s*(?:mdx-code-block|\{=mdx\}))+\s*)?\r?\n?"
# Matches the opening line of the callout (e.g., ":::info").
r":::(\w+(?:\s+\w+)?)\r?\n"
# Matches the content inside the callout, capturing until the closing line.
Expand Down

0 comments on commit 7ff1d36

Please sign in to comment.