Markdown generates invalid html for a list immediately followed by a quote
Matt Kraai
kraai at ftbfs.org
Wed Jun 13 02:00:32 EDT 2007
Howdy,
The attached patch prevents Markdown from generating invalid HTML if a
list is followed immediately by a quote, e.g.,
* foo
> bar
> baz
--
Matt
-------------- next part --------------
diff -Nru /tmp/ZHVRVKY7mc/markdown-1.0.2~b8/Markdown.pl /tmp/dDW4tYqXOK/markdown-1.0.2~b8/Markdown.pl
--- /tmp/ZHVRVKY7mc/markdown-1.0.2~b8/Markdown.pl 2007-06-12 22:58:14.000000000 -0700
+++ /tmp/dDW4tYqXOK/markdown-1.0.2~b8/Markdown.pl 2007-06-12 22:58:15.000000000 -0700
@@ -858,6 +858,11 @@
( # $4
\z
|
+ \n
+ (?= # Lookahead for a blockquote
+ [ \t]*>
+ )
+ |
\n{2,}
(?=\S)
(?! # Negative lookahead for another list item marker
More information about the Markdown-Discuss
mailing list