aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-06-06 08:58:19 -0700
committerWaylan Limberg <waylan@gmail.com>2011-06-06 08:58:19 -0700
commitee6a843c1029b52f4a0ce00ebdd8d45523535ee0 (patch)
tree28d249035df10c37ed94635d5d62c9198517d972
parent029bd9dd01258aca69f53470bde906a635412057 (diff)
parentc7bbec6b20387ece6cd69e2a87bc49c1ebafa488 (diff)
downloadmarkdown-ee6a843c1029b52f4a0ce00ebdd8d45523535ee0.tar.gz
markdown-ee6a843c1029b52f4a0ce00ebdd8d45523535ee0.tar.bz2
markdown-ee6a843c1029b52f4a0ce00ebdd8d45523535ee0.zip
Merge pull request #20 from davidchambers/master
Have the HeaderId extension preserve periods when generating ids from headings
-rw-r--r--markdown/extensions/headerid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/headerid.py b/markdown/extensions/headerid.py
index 2332abe..9c36a2b 100644
--- a/markdown/extensions/headerid.py
+++ b/markdown/extensions/headerid.py
@@ -73,7 +73,7 @@ import logging
logger = logging.getLogger('MARKDOWN')
-ID_CHARS = ascii_lowercase + digits + '-_'
+ID_CHARS = ascii_lowercase + digits + '-_.'
IDCOUNT_RE = re.compile(r'^(.*)_([0-9]+)$')