add markdown mode and update