aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Chambers <David.Chambers.05@gmail.com>2011-01-09 21:00:36 +1100
committerDavid Chambers <David.Chambers.05@gmail.com>2011-01-09 21:00:36 +1100
commit8edb47a02c50edbfa7092ed3667aaf7f070694af (patch)
tree2479866aacadedc608fa5dee42b14c3fafbf84b7
parentcd057f5a838f034b6830d986a4e10975011f88da (diff)
downloadmarkdown-8edb47a02c50edbfa7092ed3667aaf7f070694af.tar.gz
markdown-8edb47a02c50edbfa7092ed3667aaf7f070694af.tar.bz2
markdown-8edb47a02c50edbfa7092ed3667aaf7f070694af.zip
Updated regular expression to accept periods in heading ids.
-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 4f43aa5..e7e8670 100644
--- a/markdown/extensions/headerid.py
+++ b/markdown/extensions/headerid.py
@@ -84,7 +84,7 @@ class HeaderIdProcessor(markdown.blockprocessors.BlockProcessor):
(?P<level>\#{1,6}) # group('level') = string of hashes
(?P<header>.*?) # group('header') = Header text
\#* # optional closing hashes
- (?:[ \t]*\{[ \t]*\#(?P<id>[-_:a-zA-Z0-9]+)[ \t]*\})?
+ (?:[ \t]*\{[ \t]*\#(?P<id>[-_.:a-zA-Z0-9]+)[ \t]*\})?
(\n|$) # ^^ group('id') = id attribute
""",
re.VERBOSE)