Skip to content
pubscout

flutter_markdown_plus_latex

1.0.5, released a year ago by foresightmobile.com

Extension to flutter_markdown_plus that renders LaTeX in markdown.

WASM-ready
$ flutter pub add flutter_markdown_plus_latex
Source repository

What it does

Adds support for inline and block LaTeX syntax to flutter_markdown_plus using flutter_math_fork. It provides builders and syntax classes to parse and display mathematical expressions.

AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display LaTeX equations in markdown content.
  • You already use flutter_markdown_plus and want a single package for LaTeX support.

Skip it when

  • You are not using flutter_markdown_plus or need a different markdown renderer.
  • You require advanced math rendering beyond basic LaTeX support.

Strengths

  • Simple integration with existing flutter_markdown_plus setup.
  • Supports both inline and block LaTeX with custom styling.
  • No additional build_runner or code generation required.
  • Cross‑platform support (android, ios, web, desktop).

Weaknesses

  • Only works with flutter_markdown_plus; not compatible with flutter_markdown.
  • Relies on flutter_math_fork, which may have its own limitations.
  • No support for custom LaTeX packages or advanced rendering options.
  • No active maintenance beyond dependency updates (latest changelog only updates dependencies).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Add dependency to pubspec, import the package, and use LatexElementBuilder with appropriate extensionSet.

import 'package:flutter_markdown_plus_latex/flutter_markdown_plus_latex.dart';

MarkdownBody(
  data: 'latex: \$c = \pm\sqrt{a^2 + b^2}\$',
  builders: {'latex': LatexElementBuilder()},
  extensionSet: md.ExtensionSet([LatexBlockSyntax()], [LatexInlineSyntax()]),
);

Alternatives

Packages that do the same job and could replace flutter_markdown_plus_latex.

Works with

Packages commonly used together with flutter_markdown_plus_latex: ones it builds on, ones built on it, and its own family.