Format HTML elements, attributes, comments, and nested blocks for readable source.
Markup is tokenized and serialized with indentation around nested elements while raw-text and preformatted content remain protected. Formatting changes whitespace outside sensitive contexts.
<div><h1>Title</h1><p>Paragraph</p></div>
<div>
<h1>
Title
</h1>
<p>
Paragraph
</p>
</div>
Template reviews, static-site builds, and captured markup formatting format HTML.