diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-02-19 16:23:51 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-02-19 16:23:51 -0500 |
commit | 58aa01a27273d3db56a544bfc95725c4a5dd1189 (patch) | |
tree | d0e34c075b9710c47484752e822d49c075cb5fc4 | |
parent | 6418a7bad214fceff478b6114ef7225e32fdff21 (diff) | |
download | markdown-58aa01a27273d3db56a544bfc95725c4a5dd1189.tar.gz markdown-58aa01a27273d3db56a544bfc95725c4a5dd1189.tar.bz2 markdown-58aa01a27273d3db56a544bfc95725c4a5dd1189.zip |
TOC list item names must use text from all children.
-rw-r--r-- | markdown/extensions/toc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/toc.py b/markdown/extensions/toc.py index f464daa..e31aa2b 100644 --- a/markdown/extensions/toc.py +++ b/markdown/extensions/toc.py @@ -166,7 +166,7 @@ class TocTreeprocessor(markdown.treeprocessors.Treeprocessor): toc_list.append({'level': tag_level, 'id': elem_id, - 'name': c.text}) + 'name': text}) self.add_anchor(c, elem_id) |