diff options
-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) |