Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 864 Bytes

File metadata and controls

34 lines (27 loc) · 864 Bytes

BasicAritEngine

BasicAritEngine is a lightweight JavaScript arithmetic rendering engine — inspired by MathJax, but designed for simplicity, speed, and education.

Features

    • − × ÷ processing
  • Stacked fractions
  • Font switching (math / arial / code)
  • Size and color control
  • Right-click context menu
  • Copy HTML or plain text
  • Selection tooltip with RGB info

Example

👉 pages.houselearning.org/qWTQsu11UzUC8iCke3eb

Usage

<script type="module" src="https://www.houselearning.org/BasicAritEngine/plugin.js"></script>

<p class="arit">
  3/4 + 2 * (6 - 1)
</p>

<script type="module">
import BasicAritEngine from "https://www.houselearning.org/BasicAritEngine/plugin.js";

BasicAritEngine.render(".arit", {
    size: "1.6em",
    color: "#222",
    font: "math"
});
</script>