smart_latex 1.0.0
smart_latex: ^1.0.0 copied to clipboard
Robust LaTeX rendering for Flutter. Renders mixed text and math, repairs malformed input (double backslashes, Persian/Arabic digits, unbalanced braces, single-char \text{}), and isolates KaTeX metrics [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add smart_latexThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
smart_latex: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:smart_latex/smart_latex.dart';