RFC: Remove Paragraph Tags between Tags
mdickie007 at gmail.com
Sun Nov 24 02:49:12 EST 2013
> As the docs  state: “Markdown is smart enough not to add extra
> (unwanted) `<p>` tags around HTML block-level tags.” The key there is
> “block-level tags” which `<li>`s are not ( go ahead and check the HTML spec
> on that). If you want to create raw HTML lists, then you need to wrap them
> in the appropriate block-level tag yourself.
> This is a case of garbage in - garbage out. When you're using raw HTML, you
> need to use valid HTML. Markdown will not fix your invalid HTML for you.
> So, in your case, a `<li>` not in a `<ol>` or `<ul>` in not valid HTML.
> Therefore markdown doesn't fix it to make it valid. Markdown's
> understanding of HTML is way to limited for that.
> Hope that explains things for you.
> : http://daringfireball.net/projects/markdown/syntax#html
Thanks, but is it be possible to use markdown links inside a `<li>` tag? It
would be great if it works.
Thanks in advance,
More information about the Markdown-Discuss