aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-02-09 04:51:51 +0000
committerWaylan Limberg <waylan@gmail.com>2008-02-09 04:51:51 +0000
commiteea2ee00fb6c7a490a179f1c0ac1546a87ea67a8 (patch)
treec8378003343ea552ae3bd9544b7b9a8c9a6fd621
parent26b4aa77f5b85f47a96a5930a67dfbec53b8710d (diff)
downloadmarkdown-eea2ee00fb6c7a490a179f1c0ac1546a87ea67a8.tar.gz
markdown-eea2ee00fb6c7a490a179f1c0ac1546a87ea67a8.tar.bz2
markdown-eea2ee00fb6c7a490a179f1c0ac1546a87ea67a8.zip
Fixed rawhtml to properly honor <?foo>, <@foo>, and <%foo>. Fixed
[1861160]
-rw-r--r--markdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index 2279c91..1fd00e5 100644
--- a/markdown.py
+++ b/markdown.py
@@ -494,7 +494,7 @@ class HtmlBlockPreprocessor (Preprocessor):
def _equal_tags(self, left_tag, right_tag):
- if left_tag in ['?', '?php', 'div']: # handle PHP, etc.
+ if left_tag == 'div' or left_tag[0] in ['?', '@', '%']: # handle PHP, etc.
return True
if ("/" + left_tag) == right_tag:
return True