diff options
author | Yuri Takhteyev <yuri@freewisdom.org> | 2006-07-10 04:26:50 +0000 |
---|---|---|
committer | Yuri Takhteyev <yuri@freewisdom.org> | 2006-07-10 04:26:50 +0000 |
commit | dc19ebccc7478cc9149385d9f637d2fafe2d9b3f (patch) | |
tree | 3ca304a37b27b3f52f52ec4a15aa087175b54f91 /markdown.py | |
parent | fad3cbda681391a4ac12f8dd3e2033a1f9b086c8 (diff) | |
download | markdown-dc19ebccc7478cc9149385d9f637d2fafe2d9b3f.tar.gz markdown-dc19ebccc7478cc9149385d9f637d2fafe2d9b3f.tar.bz2 markdown-dc19ebccc7478cc9149385d9f637d2fafe2d9b3f.zip |
tracker #1501354
Diffstat (limited to 'markdown.py')
-rw-r--r-- | markdown.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/markdown.py b/markdown.py index a52b62b..5f6f360 100644 --- a/markdown.py +++ b/markdown.py @@ -4,7 +4,7 @@ SPEED_TEST = 0 """ ==================================================================== -IF YOU ARE LOOKING TO EXTEND MARKDOWN, SEE THE "FOOTNOTES" SECTION +IF YOA ARE LOOKING TO EXTEND MARKDOWN, SEE THE "FOOTNOTES" SECTION ==================================================================== Python-Markdown @@ -23,7 +23,7 @@ Contact: yuri [at] freewisdom.org License: GPL 2 (http://www.gnu.org/copyleft/gpl.html) or BSD -Version: 1.5 (May 15, 2006) +Version: 1.5a (July 9, 2006) For changelog, see end of file """ @@ -385,23 +385,23 @@ class HtmlBlockPreprocessor : continue if block[1] == "!": - # is comment block + # is a comment block left_tag = "--" right_tag = self._get_right_tag(left_tag, block) + # keep checking conditions below and maybe just append if block.rstrip().endswith(">") \ and self._equal_tags(left_tag, right_tag): new_blocks.append( self.stash.store(block.strip())) continue - else: + elif not block[1] == "!": # if is block level tag and is not complete items.append(block.strip()) in_tag = True continue - else: - new_blocks.append(block) + new_blocks.append(block) else: items.append(block.strip()) @@ -517,7 +517,7 @@ REFERENCE_RE = BRK+ r'\s*\[([^\]]*)\]' # [Google][3] IMAGE_REFERENCE_RE = r'\!' + BRK + '\s*\[([^\]]*)\]' # ![alt text][2] NOT_STRONG_RE = r'( \* )' # stand-alone * or _ AUTOLINK_RE = r'<(http://[^>]*)>' # <http://www.123.com> -AUTOMAIL_RE = r'<([^> ]*@[^> ]*)>' # <me@example.com> +AUTOMAIL_RE = r'<([^> \!]*@[^> ]*)>' # <me@example.com> HTML_RE = r'(\<[^\>]*\>)' # <...> ENTITY_RE = r'(&[\#a-zA-Z0-9]*;)' # & @@ -1868,6 +1868,8 @@ if __name__ == '__main__': CHANGELOG ========= +July 9, 2006: Fixed the <!--@address.com> problem (Tracker #1501354). + May 18, 2006: Stopped catching unquoted titles in reference links. Stopped creating blank headers. |