Skip to content
pubscout

markdown_quill

4.3.0, released 2 years ago by an unverified publisher

Convert between quill delta format and markdown.

$ flutter pub add markdown_quill
Source repository

What it does

Provides converters to translate text between markdown documents and flutter_quill Delta format. Supports customization like custom syntax, block attributes, and embed handlers.

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

Use it when

  • You need to persist flutter_quill content as markdown in your app.
  • You want to render markdown content inside a flutter_quill editor.

Skip it when

  • You require full image alt text retention, as only image sources are currently retained.

Strengths

  • Supports bi-directional conversion between markdown and quill Delta.
  • Allows custom elements, attributes, and embed handlers.

Weaknesses

  • Image alts are currently not supported (only image src is retained).
  • Block attributes exclusivity rules from flutter_quill apply.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

not documented

import 'package:markdown/markdown.dart' as md;
import 'package:markdown_quill/markdown_quill.dart';

final mdDocument = md.Document(encodeHtml: false);
final mdToDelta = MarkdownToDelta(markdownDocument: mdDocument);
final deltaToMd = DeltaToMarkdown();

const markdown = '# Test\nHello';
final delta = mdToDelta.convert(markdown);
final markdownAgain = deltaToMd.convert(delta);

Alternatives

Packages that do the same job and could replace markdown_quill.

Works with

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