jgm / cheapskate

Experimental markdown processor in Haskell
BSD 3-Clause "New" or "Revised" License
107 stars 18 forks source link

Does not recognize HTML attributes without values #6

Open ahmedalsudani opened 10 years ago

ahmedalsudani commented 10 years ago

If you try compiling the following:

<video src="video.mp4"
       autoplay></video>

you won't get a video element. Instead, you get:

<p>&lt;video src=&quot;video.mp4&quot;
autoplay&gt;</video></p>

The following equivalent snippet works: (notice the ="" part)

<video src="video.mp4"
       autoplay=""></video>

and you end up with:

<p><video src="video.mp4"
autoplay=""></video></p>