support markdown mode