8000 GitHub - DarkHighness/vue-mathjax
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DarkHighness/vue-mathjax

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published
0