Vue2 and Vue3 components for MathJax3
npm install mathjax3-vue javascript
yarn add mathjax3-vue
`
Use vue2
$3
`javascript
import YyMathjax from 'mathjax3-vue'
const config={
tex: {
inlineMath: [['$', '$']],
processEscapes: true
}
}
Vue.use(YyMathjax,config)
`
$3
`vue
input:abc$\frac{2}{3}$def
`
Use vue3
$3
`javascript
import { createApp } from 'vue'
import App from './App.vue'
import YyMathjax from 'mathjax3-vue'
const config={
tex: {
inlineMath: [['$', '$']],
processEscapes: true
}
}
createApp(App).use(YyMathjax,config).mount('#app')
`
$3
`vue
input:abc$\frac{2}{3}$def
``