docs: fix admonition formatting (#26801)

This commit is contained in:
Erick Friis
2024-09-23 21:55:17 -07:00
committed by GitHub
parent 603d38f06d
commit 35081d2765
36 changed files with 68 additions and 75 deletions

View File

@@ -18,13 +18,6 @@ class EscapePreprocessor(Preprocessor):
cell.source = re.sub(
r"```{=mdx}\n(.*?)\n```", r"\1", cell.source, flags=re.DOTALL
)
if ":::{.callout" in cell.source:
cell.source = re.sub(
r":::{.callout-([^}]*)}(.*?):::",
r":::\1\2:::",
cell.source,
flags=re.DOTALL,
)
# rewrite .ipynb links to .md
cell.source = re.sub(
r"\[([^\]]*)\]\((?![^\)]*//)([^)]*)\.ipynb\)",