I would like to use HTML5 Tidy as equalprg (=) filter program in Vim. Is it possible to run tidy only on parts of HTML files?
Example:
$ echo '<br/>' | tidy $options
<br>
Default is that Tidy wraps DOCTYPE, html, body around the <br> tag...
Edit: I don't want to use the input-xml option because I don't have XML but HTML5.
input-xmloption the input is treated as XML and not as HTML5. But I have HTML5.