Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exceptions for HTML5 sectioning tags #197

Closed
darkfeline opened this issue Sep 24, 2015 · 0 comments
Closed

Add exceptions for HTML5 sectioning tags #197

darkfeline opened this issue Sep 24, 2015 · 0 comments

Comments

@darkfeline
Copy link

I apologize in advance for my lack of knowledge of blackfriday and HTML, but there seems to be a lot of sectioning/block level tags that need special escaping, such as:

<section>
<article>
<nav>
<address>
<aside>
<header>
<footer>

For example, if I have the following Markdown:

<nav>Stuff in here</nav>

blackfriday will happily wrap them in <p> tags, resulting in invalid HTML5:

<p><nav>Stuff in here</nav></p>

I came across this via Hugo, so I apologize if this isn't a bug in blackfriday.

@rtfb rtfb closed this as completed in 18432fc Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant