use markdown mode in editor