Allow exceptions for MD033 "Inline HTML" (fixes #3, fixes #4).

This commit is contained in:
David Anson 2015-12-15 21:30:37 -08:00
parent 410da18a2c
commit fb31bb5f35
4 changed files with 71 additions and 3 deletions

View file

@ -0,0 +1,6 @@
{
"default": true,
"MD033": {
"allowed_elements": [ "h1", "h3", "HR", "p" ]
}
}

View file

@ -0,0 +1,41 @@
<h1>This is allowed.</h1>
<h2>This is not allowed. {MD033}</h2>
<h3>This is allowed.</h3>
<h1>This <h2>is not</h2> allowed. {MD033}</h1>
<h3>This <h2>is not</h2> allowed. {MD033}</h3>
<hr>
<hr/>
<br> {MD033}
<br/> {MD033}
<p>
This is allowed.
</p>
<article> {MD033}
This is not allowed.
</article>
<p>
<article> {MD033}
This is not allowed.
</article>
<hr/>
<br/> {MD033}
</p>
<P>
<Article> {MD033}
This is not allowed.
</Article>
<Hr/>
<Br/> {MD033}
</P>