automatically apply markdown mode