From a91e308363eeacd77270cdcb3df2109e0cfe2d18 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 14 May 2008 23:13:18 -0400 Subject: Allow hashes (#) in body of headers -- with tests. Thank you John Szakmeister for the bug report and patch. --- markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown.py') diff --git a/markdown.py b/markdown.py index acab09a..3348acc 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. -- cgit v1.2.3