Open leoluu opened 5 years ago
@leoluu
In Vue.js, you can use such as
<template>
<div class="app">
<inline-math :expression="inlinemathExpr" />
<block-math :expression="blockmathExpr" />
<element-math :expression="elementmathExpr"/>
<div>
</template>
<script>
export default {
data () {
return {
inlinemathExpr: 'c = \\pm\\sqrt{a^2 + b^2}',
blockmathExpr: 'f(x) = \\int_{-\\infty}^\\infty\\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\\,d\\xi',
elementmathExpr: `
<span class="blue">
Other node $$ \int_2^3 $$
</span>
and some <!-- comment --> more text blah. And math with a\
$$c = \\pm\\sqrt{a^2 + b^2}$$
`
}
}
}
</script>
Hi ,how to use katex in vueJS ,is there some demo,like the angular-katex, which allow lable