-
-
Save ncouture/15b4138fe772c906d2b3 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 hidden or 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
# Example tidy-html5 configuration file. | |
fix-uri: yes | |
keep-time: yes | |
hide-comment: yes | |
indent-cdata: yes | |
omit-optional-tags: yes | |
output-encoding: utf8 | |
indent: auto | |
indent-spaces: 2 | |
tab-size: 2 | |
join-classes: no | |
logical-emphasis: no | |
drop-empty-elements: no | |
anchor-as-name: no | |
doctype: auto | |
drop-empty-paras: 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 | |
wrap: 0 | |
wrap-asp: no | |
wrap-jste: no | |
wrap-php: no | |
wrap-sections: no | |
tidy-mark: yes | |
new-blocklevel-tags: article,aside,command,canvas,dialog,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,meter,main | |
new-inline-tags: video,audio,canvas,ruby,rt,rp,time,meter,progress,datalist,keygen,mark,output,source,wbr | |
force-output: yes | |
quiet: yes | |
show-warnings: yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment