This should wrap lines, arrange elements sensibly, and indent <pre> blocks.
One convention I'm using in Web Bluetooth to reduce diffs is to put each sentence on its own line. I'm not certain this is worth maintaining, but the tidy tool could break after each . to help.