File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Ecosystem
2
+ [ TOC]
2
3
3
4
Increasingly, packages are being built on top of pandas to address
4
5
specific needs in data preparation, analysis and visualization. This is
Original file line number Diff line number Diff line change 45
45
from packaging import version
46
46
import requests
47
47
import yaml
48
+ from markdown .extensions .toc import TocExtension
48
49
49
50
api_token = os .environ .get ("GITHUB_TOKEN" )
50
51
if api_token is not None :
@@ -487,7 +488,15 @@ def main(
487
488
)
488
489
else :
489
490
body = markdown .markdown (
490
- content , extensions = context ["main" ]["markdown_extensions" ]
491
+ content ,
492
+ extensions = [
493
+ TocExtension (toc_depth = "2-3" , permalink = " #" ),
494
+ "tables" ,
495
+ "fenced_code" ,
496
+ "meta" ,
497
+ "footnotes" ,
498
+ "codehilite" ,
499
+ ]
491
500
)
492
501
# Apply Bootstrap's table formatting manually
493
502
# Python-Markdown doesn't let us config table attributes by hand
You can’t perform that action at this time.
0 commit comments