mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-09 13:00:34 +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,
|
cell.source,
|
||||||
flags=re.DOTALL,
|
flags=re.DOTALL,
|
||||||
)
|
)
|
||||||
|
# rewrite .ipynb links to .md
|
||||||
|
cell.source = re.sub(
|
||||||
|
r"\[([^\]]*)\]\(([^)]*).ipynb\)", r"[\1](\2.md)", cell.source
|
||||||
|
)
|
||||||
return cell, resources
|
return cell, resources
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user