From f8256d0b6e213adb0f5d5ea55e90ae75ca444c36 Mon Sep 17 00:00:00 2001 From: Andre D Date: Mon, 28 Jan 2013 17:41:55 -0500 Subject: [PATCH] wikitoc: Accept period in header id. --- r2/r2/lib/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/filters.py b/r2/r2/lib/filters.py index ca20374fe..a886180ac 100644 --- a/r2/r2/lib/filters.py +++ b/r2/r2/lib/filters.py @@ -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()