fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
525 stars 55 forks source link

Quotes and other XML literals in ALT attribute are not converted to XML entities #151

Closed hydrixos closed 11 years ago

hydrixos commented 11 years ago

The following markdown:

Some image ![inline < "image][image-1]

[image-1]:  foo.png

Will be wrongly converted to HTML as:

<p>Some image <img src="foo.png" alt="inline < "image" id="image-1" /></p>

As you see the ALT-tag contains < and a single quotation.

Dingus exports it as:

<p>Some image <img src="foo.png" alt="inline &lt; &quot;image" /></p>

The "<" and the quote is converted to an HTML entity.

fletcher commented 11 years ago

This project is deprecated and no longer supported. You should check out MMD 4 instead.

FTP

Sent from my iPhone

On Sep 2, 2013, at 2:21 PM, hydrixos notifications@github.com wrote:

The following markdown:

Some image inline < "image

Will be wrongly converted to HTML as:

Some image inline <

As you see the ALT-tag contains < and a single quotation.

Dingus exports it as:

Some image inline < "image

The "<" and the quote is converted to an HTML entity.

— Reply to this email directly or view it on GitHubhttps://github.com/fletcher/peg-multimarkdown/issues/151 .