This commit is contained in:
Eugene Yurtsev
2024-12-22 22:10:06 -05:00
parent f993dfcfcb
commit 8213e4719b
3 changed files with 3 additions and 41 deletions
+3 -5
View File
@@ -112,11 +112,9 @@ def on_page_markdown(markdown: str, page: Page, **kwargs: Dict[str, Any]):
if page.file.src_path.endswith(".ipynb"):
logger.info("Processing Jupyter notebook: %s", page.file.src_path)
markdown = convert_notebook(page.file.abs_src_path)
else:
# Append API reference links to code blocks
# This logic is already applied for notebooks in `convert_notebook`.
# We add it here to apply it to regular markdown files.
markdown = update_markdown_with_imports(markdown)
# Append API reference links to code blocks
markdown = update_markdown_with_imports(markdown)
# Apply highlight comments to code blocks
markdown = _highlight_code_blocks(markdown)
return markdown