Created
March 28, 2014 00:09
-
-
Save paultreny/9822049 to your computer and use it in GitHub Desktop.
The config file I use for tidy-html5. $ tidy -config <path/to/tidy.conf> input.html > output.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paulcode.com | |
// tidy-html5 config file (mine's named "tidy.conf") | |
// tidy documentation is here: http://tidy.sourceforge.net/#docs | |
// tidy-html5 documentation here: http://w3c.github.io/tidy-html5/quickref.html#drop-empty-elements | |
join-classes: no | |
logical-emphasis: no | |
drop-empty-elements: no | |
anchor-as-name: no | |
doctype: auto | |
drop-empty-paras: no | |
fix-uri: no | |
literal-attributes: yes | |
merge-divs: no | |
merge-spans: no | |
numeric-entities: no | |
preserve-entities: yes | |
quote-ampersand: no | |
quote-marks: no | |
show-body-only: no | |
indent: auto | |
indent-spaces: 2 | |
tab-size: 2 | |
wrap: 0 | |
wrap-asp: no | |
wrap-jste: no | |
wrap-php: no | |
wrap-sections: no | |
tidy-mark: no | |
new-blocklevel-tags: article,aside,command,canvas,dialog,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,meter | |
new-inline-tags: video,audio,canvas,ruby,rt,rp,time,meter,progress,datalist,keygen,mark,output,source,wbr | |
// Change these only if you need to debug a problem with Tidy | |
force-output: yes | |
quiet: yes | |
show-warnings: yes |
Where do you store this file at? im new to Tidy but would love to use this. My editor is ATOM.
@lenichols: specify it with the -config <path/to/config-file> in the command line when you run tidy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Paul, thanks for posting this. http://w3c.github.io/tidy-html5/quickref.html#drop-empty-elements is no longer a valid link, the best alternative I could find is http://www.html-tidy.org/quickref.html#drop-empty-elements