diff options
author | Waylan Limberg <waylan@gmail.com> | 2014-09-25 21:17:57 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2014-09-25 21:17:57 -0400 |
commit | 39c8c1c64fe04bbde625b314386cb109b11527da (patch) | |
tree | 430677226b602e67aeee5b08115a43e0a0747709 /markdown/extensions | |
parent | 5fa6d0be20ec6392b265968e24a528b10128ede8 (diff) | |
download | markdown-39c8c1c64fe04bbde625b314386cb109b11527da.tar.gz markdown-39c8c1c64fe04bbde625b314386cb109b11527da.tar.bz2 markdown-39c8c1c64fe04bbde625b314386cb109b11527da.zip |
Fixed TOC Option parsing.
The new option parser assumes bool values if the default is bool or
None. As the "title" option is not a bool value, it should default to an
empty string rather than None. Fixes #347.
Diffstat (limited to 'markdown/extensions')
-rw-r--r-- | markdown/extensions/toc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/toc.py b/markdown/extensions/toc.py index 22cf063..d21ea96 100644 --- a/markdown/extensions/toc.py +++ b/markdown/extensions/toc.py @@ -216,9 +216,9 @@ class TocExtension(Extension): "slugify" : [slugify, "Function to generate anchors based on header text - " "Defaults to the headerid ext's slugify function."], - "title" : [None, + "title" : ["", "Title to insert into TOC <div> - " - "Defaults to None"], + "Defaults to an empty string"], "anchorlink" : [0, "1 if header should be a self link - " "Defaults to 0"], |