aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2008-05-30 14:59:08 -0700
committerYuri Takhteyev <yuri@freewisdom.org>2008-05-30 14:59:08 -0700
commit22188b4233a79387b49318acc8375da995224c43 (patch)
tree2ef3efc14b91daa6c23d3edb1c3fd2c5a1d75bcd /markdown.py
parentd0d4e56d0d2aeff4a977113c5ec17c9ec4e90714 (diff)
parent80172e52c04683af35ab4dce1f5c285d73754824 (diff)
downloadmarkdown-22188b4233a79387b49318acc8375da995224c43.tar.gz
markdown-22188b4233a79387b49318acc8375da995224c43.tar.bz2
markdown-22188b4233a79387b49318acc8375da995224c43.zip
Merge git://gitorious.org/python-markdown/mainline
Diffstat (limited to 'markdown.py')
-rw-r--r--markdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index 8978b89..422cde4 100644
--- a/markdown.py
+++ b/markdown.py
@@ -1295,7 +1295,7 @@ class CorePatterns:
"""
patterns = {
- 'header': r'(#*)([^#]*)(#*)', # # A title
+ 'header': r'(#{1,6})[ \t]*(.*?)[ \t]*(#*)', # # A title
'reference-def': r'(\ ?\ ?\ ?)\[([^\]]*)\]:\s*([^ ]*)(.*)',
# [Google]: http://www.google.com/
'containsline': r'([-]*)$|^([=]*)', # -----, =====, etc.