enable template ,when it's markdown mode