Open LIRUILONGS opened 3 years ago
嗯,解决了,不知道方式对不对
import Vue from 'vue'
import App from './App.vue'
import 'mavon-editor/dist/css/index.css'
import mavonEditor from 'mavon-editor'
//import VueKatex from 'vue-katex';
//import 'katex/dist/katex.min.css';
import Md_Katex from '@iktakahiro/markdown-it-katex'
//Vue.use(VueKatex)
//Vue.config.productionTip = false
Vue.use(mavonEditor)
mavonEditor.markdownIt.set({}).use(Md_Katex);
new Vue({
render: h => h(App),
}).$mount('#app')
嗯,想问问您,支持 katex 不,方式是什么?
是这样的方式嘛?我的报错