mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-31 16:39:20 +00:00
infra: rewrite ipynb links to md (#21392)
This commit is contained in:
parent
225ceedcb6
commit
893f06b5de
@ -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…
Reference in New Issue
Block a user