A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Python-Markdown/markdown/issues/1107 below:

Include permalink for headers out of toc_depth range · Issue #1107 · Python-Markdown/markdown · GitHub

I would like to be able to enable permalinks for headers out of the toc_depth range. Currently only headers within the range get permalinks when permalink is enabled. (Markdown==3.3.3)

My use case is that I have pages that have a lot of headers. In order for the TOC to be not too large, I use toc_depth to only include higher levels in my TOC. However, I would like users to still be able to directly link to the out-of-range headers if they need to.

More concretely, I have API documentation for modules. My TOC only goes down to class names, as including method names would be too much, but I'd still like users to be able to link directly to method headers.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4