add markdown mode support