mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 22:29:51 +00:00
docs: dont rewrite ipynb links that have double slash (v0.1) (#21776)
This commit is contained in:
parent
d53de65aca
commit
c9ec8c5d07
@ -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