mirror of
https://github.com/hwchase17/langchain
synced 2024-11-02 09:40:22 +00:00
docs: dont rewrite ipynb links that have double slash (#21775)
This commit is contained in:
parent
e3a03b324d
commit
5e445a7e4e
@ -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…
Reference in New Issue
Block a user