module documentation
Table of Contents Extension for Python-Markdown =============================================== See <https://Python-Markdown.github.io/extensions/toc> for documentation. Oringinal code Copyright 2008 [Jack Miller](https://codezen.org/) All changes Copyright 2008-2014 The Python Markdown Project License: [BSD](https://opensource.org/licenses/bsd-license.php)
Class |
|
Undocumented |
Class |
|
No class docstring; 0/14 instance variable, 4/8 methods documented |
Function | get |
Get title name. |
Function | make |
Undocumented |
Function | nest |
Given an unsorted list with errors and skips, return a nested one. [{'level': 1}, {'level': 2}] => [{'level': 1, 'children': [{'level': 2, 'children': []}]}] |
Function | slugify |
Slugify a string, to make it URL friendly. |
Function | slugify |
Slugify a string, to make it URL friendly while preserving Unicode characters. |
Function | stashed |
Extract raw HTML from stash, reduce to plain text and swap with placeholder. |
Function | unescape |
Unescape escaped text. |
Function | unique |
Ensure id is unique in set of ids. Append '_1', '_2'... if not |
Constant | IDCOUNT |
Undocumented |
Given an unsorted list with errors and skips, return a nested one. [{'level': 1}, {'level': 2}] => [{'level': 1, 'children': [{'level': 2, 'children': []}]}] A wrong list is also converted: [{'level': 2}, {'level': 1}] => [{'level': 2, 'children': []}, {'level': 1, 'children': []}]