diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2018-09-05 15:54:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 15:54:16 -0400 |
commit | f51125d01b88067d8523e9706cfa4558b3808222 (patch) | |
tree | a3bfba21a78865d023129f20e8ca2395d583354f /docs/change_log/release-3.0.md | |
parent | da68eb57a1f88b02543950f623a64ec6186d2ab2 (diff) | |
download | markdown-f51125d01b88067d8523e9706cfa4558b3808222.tar.gz markdown-f51125d01b88067d8523e9706cfa4558b3808222.tar.bz2 markdown-f51125d01b88067d8523e9706cfa4558b3808222.zip |
Support custom labels in TOC. (#700)
New `toc_tokens` attribute on Markdown class.
Contains the raw tokens used to build the Table of Contents. Users can
use this to build their own custom Table of Contents rather than needing
to parse the HTML available on the `toc` attribute of the Markdown
class.
Diffstat (limited to 'docs/change_log/release-3.0.md')
-rw-r--r-- | docs/change_log/release-3.0.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/change_log/release-3.0.md b/docs/change_log/release-3.0.md index 85a5d27..ab6b83e 100644 --- a/docs/change_log/release-3.0.md +++ b/docs/change_log/release-3.0.md @@ -202,5 +202,17 @@ The following new features have been included in the release: * A new `toc_depth` parameter has been added to the [Table of Contents Extension](../extensions/toc.md). +* A new `toc_tokens` attribute has been added to the Markdown class by the + [Table of Contents Extension](../extensions/toc.md), which contains the raw + tokens used to build the Table of Contents. Users can use this to build their + own custom Table of Contents rather than needing to parse the HTML available + on the `toc` attribute of the Markdown class. + +* When the [Table of Contents Extension](../extensions/toc.md) is used in + conjunction with the [Attribute Lists Extension](../extensions/attr_list.md) + and a `data-toc-label` attribute is defined on a header, the content of the + `data-toc-label` attribute is now used as the content of the Table of Contents + item for that header. + * Additional CSS class names can be appended to [Admonitions](../extensions/admonition.md). |