avoid removing trailing spaces for markdown files