bundled/markdown2: escape broken HTML comments
    
        | author | Steve Losh <steve@stevelosh.com> | 
    
        | date | Mon, 12 Jul 2010 21:46:11 -0400 | 
    
    
        | parents | 5668dd3e0a95 | 
    
        | children | 9f8ab6e7b2ec | 
    
        | branches/tags | (none) | 
    
        | files | bundled/markdown2/lib/markdown2.py | 
Changes
    
--- a/bundled/markdown2/lib/markdown2.py	Mon Jul 12 21:37:47 2010 -0400
+++ b/bundled/markdown2/lib/markdown2.py	Mon Jul 12 21:46:11 2010 -0400
@@ -523,6 +523,7 @@
                 try:
                     end_idx = text.index("-->", start_idx) + 3
                 except ValueError, ex:
+                    text = text[:start_idx] + '<' + text[start_idx+1:]
                     break
 
                 # Start position for next comment block search.