markdown editing and previewing