aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/extensions/toc.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/extensions/toc.py')
-rw-r--r--markdown/extensions/toc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/toc.py b/markdown/extensions/toc.py
index 7edc0cc..1d6639e 100644
--- a/markdown/extensions/toc.py
+++ b/markdown/extensions/toc.py
@@ -127,7 +127,7 @@ class TocTreeprocessor(markdown.treeprocessors.Treeprocessor):
self.use_anchors = self.config["anchorlink"] in [1, '1', True, 'True', 'true']
# Get a list of id attributes
- used_ids = []
+ used_ids = set()
for c in doc.getiterator():
if "id" in c.attrib:
used_ids.append(c.attrib["id"])