diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index 1ebd4f3d3f1dc..112d366910a94 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -1,4 +1,5 @@ # Ecosystem +[TOC] Increasingly, packages are being built on top of pandas to address specific needs in data preparation, analysis and visualization. This is diff --git a/web/pandas_web.py b/web/pandas_web.py index 8db2a5448813a..35d1c450498ac 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -45,6 +45,7 @@ from packaging import version import requests import yaml +from markdown.extensions.toc import TocExtension api_token = os.environ.get("GITHUB_TOKEN") if api_token is not None: @@ -487,7 +488,15 @@ def main( ) else: body = markdown.markdown( - content, extensions=context["main"]["markdown_extensions"] + content, + extensions= [ + TocExtension(toc_depth="2-3", permalink=" #"), + "tables", + "fenced_code", + "meta", + "footnotes", + "codehilite", + ] ) # Apply Bootstrap's table formatting manually # Python-Markdown doesn't let us config table attributes by hand