diff options
author | David Chambers <David.Chambers.05@gmail.com> | 2011-01-09 21:00:36 +1100 |
---|---|---|
committer | David Chambers <David.Chambers.05@gmail.com> | 2011-01-09 21:00:36 +1100 |
commit | 8edb47a02c50edbfa7092ed3667aaf7f070694af (patch) | |
tree | 2479866aacadedc608fa5dee42b14c3fafbf84b7 | |
parent | cd057f5a838f034b6830d986a4e10975011f88da (diff) | |
download | markdown-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.py | 2 |
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) |