Skip to content
Browse files

fixed handling of parentheses in TableOfContents module

  • Loading branch information...
1 parent e02e949 commit 99c1495aa670fab9fb5fd2cfcad06378f1068b4c @AlexNisnevich AlexNisnevich committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 MarkdownPP/Modules/TableOfContents.py
View
2 MarkdownPP/Modules/TableOfContents.py
@@ -101,7 +101,7 @@ def transform(self, data):
(depth, title) = headers[linenum]
depth += depthoffset
- short = re.sub("([\s,-]+)", "", title).lower()
+ short = re.sub("([\s,-,\(,\)]+)", "", title).lower()
while depth > lastdepth:
stack.append(headernum)

0 comments on commit 99c1495

Please sign in to comment.
Something went wrong with that request. Please try again.