katex_dart 0.1.1
katex_dart: ^0.1.1 copied to clipboard
A pure-Dart port of KaTeX. Parses LaTeX math to a backend-agnostic box tree and serializes it to SVG — no Flutter dependency.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add katex_dartWith Flutter:
$ flutter pub add katex_dartThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
katex_dart: ^0.1.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:katex_dart/katex_dart.dart';