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 1f1de15..fb930e2 100644 --- a/markdown/extensions/toc.py +++ b/markdown/extensions/toc.py @@ -97,7 +97,7 @@ class TocTreeprocessor(markdown.treeprocessors.Treeprocessor): link.text = text link.attrib["href"] = '#' + id - if int(self.config["anchorlink"]): + if self.config["anchorlink"] in [1, '1', True, 'True', 'true']: anchor = etree.Element("a") anchor.text = c.text anchor.attrib["href"] = "#" + id |