77<h4 align =" center " >Extends Chai with assertions for HTMLHint</h4 >
88
99<p align =" center " >
10- <a href =" https://travis-ci.org/htmlhint/chai-htmlhint " >
11- <img src="https://img.shields.io/travis/htmlhint/chai-htmlhint.svg" alt="Travis Build Status">
12- </a >
13- <a href="https://codecov.io/gh/htmlhint/chai-htmlhint>
14- <img src =" https://codecov.io/gh/htmlhint/chai-htmlhint/branch/master/graph/badge.svg " alt =" Codecov " >
15- </a >
1610 <a href =" https://www.npmjs.com/package/chai-htmlhint " >
17- <img src="https://img.shields.io/npm/dm/chai-htmlhint.svg" alt="NPM count">
18- </a >
19- <img src =" https://badgen.net/badge/license/MIT/green " alt =" MIT Licence " />
20- <a href =" https://discord.gg/nJ6J9CP " >
21- <img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat">
11+ <img src="https://img.shields.io/npm/v/chai-htmlhint" alt="npm Version">
2212 </a >
23- <a href =" http ://roadmap.htmlhint.io/roadmap " >
24- <img src="https://img.shields.io/badge/check-our%20roadmap-EE503E .svg" alt="Chat ">
13+ <a href =" https ://www.npmjs.com/package/chai-htmlhint " >
14+ <img src="https://img.shields.io/npm/dm/chai-htmlhint .svg" alt="npm count ">
2515 </a >
2616</p >
2717
2818<p align =" center " >
29- <a href =" #usage " >How To Use</a > • <a href =" /CONTRIBUTING.md " >Contributing</a > • <a href =" http://roadmap.htmlhint.io/ " >Roadmap</ a > • < a href = " https://htmlhint.io " >Website</a >
19+ <a href =" #usage " >How To Use</a > • <a href =" /CONTRIBUTING.md " >Contributing</a > • <a href =" https://htmlhint.com " >Website</a >
3020</p >
3121
3222# Usage
3323You just have to pass the html you want to validate like this:
24+
3425``` javascript
3526var myhtml = ' <h1>my html</h1>' ;
3627expect (myhtml).to .be .validHtml ;
3728```
3829
3930The default rules are:
31+
4032``` json
4133{
4234 "alt-require" : true ,
@@ -57,7 +49,7 @@ The default rules are:
5749 "tag-self-close" : true ,
5850 "tagname-lowercase" : true ,
5951 "title-require" : true
60- };
52+ }
6153```
6254
6355If you want to override you just need a valid ` .htmlhintrc ` file in the root of your project
@@ -66,6 +58,6 @@ If you want to override you just need a valid `.htmlhintrc` file in the root of
6658
6759Project initially created by [ @molant ] ( https://github.com/molant ) and transferred to the [ HTMLHint] ( https://github.com/htmlhint ) organization.
6860
69- <a href =" https://htmlhint.io " ><img src =" https://raw.githubusercontent.com/htmlhint/htmlhint/develop/ src/img/htmlhint.png " alt =" Logo HTMLHint " width =" 65 " ></a >
61+ <a href =" https://htmlhint.com " ><img src =" https://raw.githubusercontent.com/htmlhint/HTMLHint/main/website/ src/assets/ img/htmlhint.png " alt =" Logo HTMLHint " height = " 65 " width =" 65 " ></a >
7062
7163[ MIT License] ( ./LICENSE )
0 commit comments