Skip to content
pubscout

rich_markdown

1.1.0, released 9 days ago by an unverified publisher

A single Flutter widget for rendering Markdown, LaTeX equations, and HTML content.

WASM-ready
$ flutter pub add rich_markdown
Source repository

What it does

Renders rich text content containing Markdown formatting, mathematical LaTeX expressions, and HTML elements in a unified widget. It includes robust parsing for streaming AI responses and protects currency symbols or code blocks from false-positive equation matching.

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

Use it when

  • Building AI chat applications that stream markdown and math content
  • Displaying educational or documentation content with LaTeX equations
  • Rendering mixed HTML and Markdown text within Flutter

Skip it when

  • You only need standard plain text or basic Text widgets without markup
  • You require full enterprise-grade custom web-rendering engines outside of flutter_html capabilities

Strengths

  • Streaming-safe parsing handles incomplete equations progressively
  • Robust edge case handling protects code blocks and currency values from LaTeX parsing
  • Decoupled architecture separates parsing logic from UI rendering

Weaknesses

  • Relies on external packages like flutter_html and flutter_math_fork for underlying rendering

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4
RichMarkdownView(
  data: '# Hello, Rich Markdown!\n\nInline equation: \\(E = mc^2\\)',
  type: ContentType.markdown,
)

Alternatives

Packages that do the same job and could replace rich_markdown.

  • jaspr_content

    Jaspr plugin for building content-driven sites like documentation and blogs.

  • gpt_markdown

    Powerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.

  • flutter_tex

    Renders mathematical and chemical equations using LaTeX, TeX, MathML, and AsciiMath.

  • flutter_md

    Fast Markdown parser and canvas renderer for Flutter with text selection and streaming.

Works with

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