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.
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.
77Compare - gpt_markdown
Powerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.
94Compare - flutter_tex
Renders mathematical and chemical equations using LaTeX, TeX, MathML, and AsciiMath.
83Compare - flutter_md
Fast Markdown parser and canvas renderer for Flutter with text selection and streaming.
82Compare
Works with
Packages commonly used together with rich_markdown: ones it builds on, ones built on it, and its own family.
- htmlrich_markdown depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- markdownrich_markdown depends on itA portable Markdown library written in Dart that can parse Markdown into HTML.
- flutter_htmlrich_markdown depends on itRenders static HTML and CSS as Flutter widget trees.
- flutter_math_forkrich_markdown depends on itFast and high-quality TeX math equation rendering with pure Dart and Flutter.