markdown_quill
4.3.0, released 2 years ago by an unverified publisher
Convert between quill delta format and markdown.
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.
- flutter_quill_delta_from_html
Converts HTML strings to Quill Delta format for use with Quill editor.
55Compare - parchment
Platform-agnostic rich text document model based on Delta format.
69Compare - dart_quill_delta
Dart port of Quill Delta JSON format for rich-text documents
50Compare - hijri
Convert between Hijri (Umm al‑Qura) and Gregorian dates with locale support.
66Compare
Works with
Packages commonly used together with markdown_quill: ones it builds on, ones built on it, and its own family.
- charcodemarkdown_quill depends on itProvides named integer constants for ASCII and HTML character codes.
- markdownmarkdown_quill depends on itA portable Markdown library written in Dart that can parse Markdown into HTML.
- flutter_quillmarkdown_quill depends on itA rich text WYSIWYG editor component and toolbar for Flutter apps.