Development To format the HTML, you can use dindent. I didn’t find anything else that just reindents HTML. cargo run -- README.rst | dindent --input='php://stdin'