how to use katex in vueJS ,is there some demo,like the angular-katex
Closed this issue · 3 comments
leoluu commented
Hi ,how to use katex in vueJS ,is there some demo,like the angular-katex, which allow lable
<!-- Tag element -->
<katex>x^2</katex>
<!-- Attribute -->
<div katex>x^2</div>
<!-- Attribute value -->
<div katex="x^2"></div>
<!-- expr attribute value -->
<katex expr="x^2"></katex>
<!-- Bind to scope
$scope.tex = {pow: 'x^2'}
-->
<katex bind="tex.pow"></katex>
<!-- Set display mode -->
<katex expr="x^2" display-mode></katex>
lucpotage commented
Hi @leoluu, I added a Code Sandbox. Hope it will help you! https://codesandbox.io/s/64rv2xq9k3
leoluu commented
yeah,could I render it like this $$ \frac{a_i}{1+x} $$
lucpotage commented
Sorry, it's not currently possible.