laravelrotebal/nova-katex

A Laravel Nova Katex field.

0.0.5 2021-04-06 16:07 UTC

This package is auto-updated.

Last update: 2024-11-09 21:37:37 UTC


README

A laravel nova package that allows you to render KaTeX expressions.

Based on vue-katex package.

Installation

composer require laravelrotebal/nova-katex

Usage

use LaravelRotEbal\NovaKatex\NovaKatex;

NovaKatex::make(__('Equation'), 'equation'),

Examples

\ce{Zn^2+  <=>[+ 2OH-][+ 2H+]  $\underset{\text{amphoteres Hydroxid}}{\ce{Zn(OH)2 v}}$  <=>[+ 2OH-][+ 2H+]  $\underset{\text{Hydroxozikat}}{\ce{[Zn(OH)4]^2-}}$}

image image image