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 1d6639e..bade490 100644 --- a/markdown/extensions/toc.py +++ b/markdown/extensions/toc.py @@ -130,7 +130,7 @@ class TocTreeprocessor(markdown.treeprocessors.Treeprocessor): used_ids = set() for c in doc.getiterator(): if "id" in c.attrib: - used_ids.append(c.attrib["id"]) + used_ids.add(c.attrib["id"]) toc_list = [] marker_found = False |