add support for markdown mode