docs: dont rewrite ipynb links that have double slash (#21775)

pull/21783/head
Erick Friis 2 weeks ago committed by GitHub
parent e3a03b324d
commit 5e445a7e4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -27,7 +27,9 @@ class EscapePreprocessor(Preprocessor):
)
# rewrite .ipynb links to .md
cell.source = re.sub(
r"\[([^\]]*)\]\(([^)]*).ipynb\)", r"[\1](\2.md)", cell.source
r"\[([^\]]*)\]\((?![^\)]*//)([^)]*)\.ipynb\)",
r"[\1](\2.md)",
cell.source,
)
return cell, resources

Loading…
Cancel
Save