Match element names case-insensitively
Preserve formatting inside a pre element
Add newlines after block-like elements