Better handling of markdown files