Skip to main content

prism_markdown 0.4.0 copy "prism_markdown: ^0.4.0" to clipboard
prism_markdown: ^0.4.0 copied to clipboard

A fast, plugin-free Markdown widget for Flutter with full CommonMark and GFM support. The maintained replacement for the discontinued flutter_markdown package.

Changelog #

0.4.0 #

  • Feature: added asyncParsing, placeholder, and parseRunner parameters to PrismMarkdown. When asyncParsing is true, markdown is parsed in a background isolate via Isolate.run so long documents do not block the UI thread — fixes scroll jitter when building many markdown widgets in scrollable lists. A placeholder widget is shown while parsing; parseRunner allows custom scheduling or synchronous testing. Implements flutter/flutter#81772.

0.3.0 #

  • Feature: added maxLines and overflow parameters to PrismMarkdown for truncating text blocks (headings, paragraphs, list items, table cells). Text beyond maxLines is truncated with the specified TextOverflow (defaults to ellipsis). Code blocks are never truncated. Implements the most-requested feature from the discontinued flutter_markdown (flutter/flutter#81739).

0.2.2 #

  • Docs: fixed broken "Render every element" code example on pub.dev (nested code fence now renders correctly), converted feature list to bullets, and corrected the flutter_markdown migration table.

0.2.1 #

  • Docs: rewritten README with full usage guide, migration table from flutter_markdown, screenshots section, and FAQ.
  • Docs: added GitHub repo badges and About/description metadata.

0.2.0 #

  • Fixed: the widget now re-parses and re-renders when data changes (previously it kept showing stale content).
  • New: highlighter callback for custom syntax highlighting of fenced and inline code, with automatic language detection from the fence info.
  • New: imageBuilder callback to fully customize image rendering (e.g. CachedNetworkImage, local assets) with a built-in network fallback.
  • New: documented first-class support for all Flutter platforms — Android, iOS, macOS, Windows, Linux, and web (pure Flutter, no plugins).

0.1.1 #

  • Improved README documentation.

0.1.0 #

  • Initial release.
  • Full CommonMark parsing with GFM extensions (tables, strikethrough, task lists, autolinks).
  • PrismMarkdown widget with selectable text and link tap callbacks.
  • PrismMarkdownStyle for theming all block and inline elements.
0
likes
160
points
184
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A fast, plugin-free Markdown widget for Flutter with full CommonMark and GFM support. The maintained replacement for the discontinued flutter_markdown package.

Repository (GitHub)
View/report issues

Topics

#markdown #widget #text #html

License

MIT (license)

Dependencies

flutter, markdown, meta

More

Packages that depend on prism_markdown