vue3-mathjax
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Vue MathJax

This is a vue 3 MathJax component, which uses slots instead of passing formula as prop.

Usage

<template>
  <math-jax>
    <div class="container">
      <p>This is a vue component for $MathJax$</p>
      <p>Instead of using <strong>span</strong> and pass formula as prop</p>
      <p>But using <strong>slots</strong></p>
      <p>$$c^2 = a ^ 2 + b ^ 2$$</p>
    </div>
  </math-jax>
</template>

<style>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
</style>

Readme

Keywords

Package Sidebar

Install

npm i vue3-mathjax

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

13 kB

Total Files

9

Last publish

Collaborators

  • twiliness