vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

<p> tags are added around <figure> HTML block-level tag. #46

Closed steverandy closed 13 years ago

steverandy commented 13 years ago

For example:

<figure>
  <img src="/new.jgp" />
</figure>

is transformed into

<p>
  <figure>
    <img src="/new.jgp" />
  </figure>
</p>

The <p> tags should not be added. It works for <div> tags but not for <figure> tag.

vmg commented 13 years ago

Fixed! Somehow I added all the block-level HTML5 except for figure.