infra: rewrite ipynb links to md (#21392)

This commit is contained in:
Erick Friis
2024-05-07 16:16:52 -07:00
committed by GitHub
parent 225ceedcb6
commit 893f06b5de

View File

@@ -25,6 +25,10 @@ class EscapePreprocessor(Preprocessor):
cell.source,
flags=re.DOTALL,
)
# rewrite .ipynb links to .md
cell.source = re.sub(
r"\[([^\]]*)\]\(([^)]*).ipynb\)", r"[\1](\2.md)", cell.source
)
return cell, resources