jgm / peg-markdown

An implementation of markdown in C, using a PEG grammar
Other
695 stars 140 forks source link

Does not ignore html tags #21

Closed shammancer closed 11 years ago

shammancer commented 11 years ago

It places <p> tags around the html tags I want in my file.

http://daringfireball.net/projects/markdown/syntax#html

jgm commented 11 years ago

Markdown distingushes between HTML blocks and inline HTML. Inline HTML is part of a paragraph, and it is proper to surround it with <p> tags in that case. Different markdown implementations vary slightly in how they interpret the syntax description in this respect.

shammancer commented 11 years ago

What would be the difference between the two? I would like to be able to put some information in between some head tags.

shammancer commented 11 years ago

It is something like this that I am trying.

<head>
<meta/>
<meta/>
</head>
jgm commented 11 years ago

OK, that should work. Probably just need to add head to the list of block-level tags.

shammancer commented 11 years ago

Awesome thanks.