Make it only truncate extensions for HTML and Markdown files.