Skip to content

Instantly share code, notes, and snippets.

@hiphamster
Forked from paultreny/tidy.conf
Created November 7, 2018 05:42
Show Gist options
  • Save hiphamster/47d948c5a4f6f65dc6b4f433e44cc496 to your computer and use it in GitHub Desktop.
Save hiphamster/47d948c5a4f6f65dc6b4f433e44cc496 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
// 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment