wikitoc: Accept period in header id.

This commit is contained in:
Andre D
2013-01-28 17:41:55 -05:00
committed by Neil Williams
parent 02191efe6d
commit f8256d0b6e

View File

@@ -270,7 +270,7 @@ def wikimarkdown(text):
return SC_OFF + WIKI_MD_START + text + WIKI_MD_END + SC_ON
title_re = re.compile('[^\w-]')
title_re = re.compile('[^\w.-]')
header_re = re.compile('^h[1-6]$')
def inject_table_of_contents(soup, prefix):
header_ids = Counter()