It appears that Markdown will process ampersands contained within HTML comments if that comment is part of a markdown paragraph, but will not when that paragraph is contained within an HTML block of it's own (and therefore ignored by Markdown.)

For example:

This is a markdown paragraph with a comment that *will* be processed <!-- This & *will* be converted -->

<p><!-- This & will *not* be converted --></p>

It seems to me that the & within a comment should be ignored by Markdown and not converted to &amp;


The reason this is important for me, is that I am experimenting with using HTML comments as a means to pass text that should be ignored by MultiMarkdown (e.g. to allow raw LaTeX, etc). But some of the comments *are* being processed, which screws them up.


Thanks for any insight, and ideas on how to fix this!


Fletcher Penney


--
Fletcher T. Penney
[EMAIL PROTECTED]

Without question, the greatest invention in the history of mankind
is beer. Oh, I grant you that the wheel was also a fine invention,
but the wheel does not go nearly as well with pizza.
        - Dave Barry

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to