=== Changes ================================================================== --- Changes (revision 936) +++ Changes (local) @@ -49,3 +49,5 @@ 1.0.7 2008-01-07T16:31:00 - Encode isn't in core in all perls, add it to Makefile.PL +1.0.8 2008-01-??T??:??:?? + - Do not encode amps or angle brackets in HTML comments + test case. s === lib/Text/MultiMarkdown.pm ================================================================== --- lib/Text/MultiMarkdown.pm (revision 936) +++ lib/Text/MultiMarkdown.pm (local) @@ -1488,6 +1488,18 @@ # $text =~ s{>(?![a-z/?\$!])}{>}gi; # Causes problems... + # Remove encoding inside comments + $text =~ s{ + (?<=) # End comments + }{ + my $t = $1; + $t =~ s/&/&/g; + $t =~ s/</Test bare block & < > Test

+ +

Test HTML block & < > Test

+ +

A larger bare block

+ +

footer

=== t/docs-multimarkdown/Amps and angles encoding-advanced.text ================================================================== --- t/docs-multimarkdown/Amps and angles encoding-advanced.text (revision 936) +++ t/docs-multimarkdown/Amps and angles encoding-advanced.text (local) @@ -0,0 +1,8 @@ +Test bare block & < > Test + +

Test HTML block & < > Test

+ +A larger bare block + +footer