lucpotage/vue-katex

how to use katex in vueJS ,is there some demo,like the angular-katex

Closed this issue · 3 comments

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>

Hi @leoluu, I added a Code Sandbox. Hope it will help you! https://codesandbox.io/s/64rv2xq9k3

yeah,could I render it like this $$ \frac{a_i}{1+x} $$

Sorry, it's not currently possible.