Bug: INS/DEL in block context (1.04b)

european bob bob at wolfwall.com
Wed Apr 28 11:54:09 EDT 2004


Aaron,

On Wed, 2004-04-28 at 16:48, Aaron Swartz wrote:
> my $block_tag_re = qr/p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script/;
> 
> Just add |ins|del to it.

The problem is that;

	<ins>This is <i>new text</i>!</ins>

isn't a block level tag, and therefore cannot appear below a <body> tag.
With that change above, you're simply swapping problems: when you
process the above you get invalid HTML, and Jay's original becomes
valid. If you don't have the above change, Jay's outputs the incorrect
code seen previously but the above outputs valid code.

There is an argument to say Jay's is more severe since it is malformed
XML; whereas the new situation would simply be invalid HTML. 

--bob.



More information about the Markdown-discuss mailing list