infra: rewrite ipynb links to md (#21392)

pull/19959/merge
Erick Friis 3 weeks ago committed by GitHub
parent 225ceedcb6
commit 893f06b5de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save