Quill Markdown
This package converts quill delta to markdown (.md) and vice versa for the package flutter_quill.
String content = '[{"insert":"Heading"},{"insert":"\\n","attributes":{"header":1}},{"insert":"bold","attributes":{"bold":true}},{"insert":"\\n"},{"insert":"bold and italic","attributes":{"bold":true,"italic":true}},{"insert":"\\nsome code"},{"insert":"\\n","attributes":{"code-block":true}},{"insert":"A quote"},{"insert":"\\n","attributes":{"blockquote":true}},{"insert":"ordered list"},{"insert":"\\n","attributes":{"list":"ordered"}},{"insert":"unordered list"},{"insert":"\\n","attributes":{"list":"bullet"}},{"insert":"link","attributes":{"link":"pub.dev/packages/quill_markdown"}},{"insert":"\\n"}]';
content = quillToMarkdown(content);
print(content);
content = markdownToQuill(content);
print(content);
Known Limitations:
- Doesn't convert image, leaves that attribute.
- Doesn't convert strike, leaves that attribute.
- Doesn't convert color, leaves that attribute.
- Doesn't convert background, leaves that attribute.
- Doesn't convert underline, leaves that attribute.
- Doesn't convert indent, leaves that attribute.
- Doesn't convert checkbox, leaves that attribute.
- Markdown to quill converter is very buggy.
Libraries
- notus/convert
- Provides codecs to convert Notus documents to other formats.
- notus/notus
- Rich text document model for Zefyr editor.
- notus/src/convert/markdown
- notus/src/document
- notus/src/document/attributes
- notus/src/document/block
- notus/src/document/leaf
- notus/src/document/line
- notus/src/document/node
- notus/src/heuristics
- notus/src/heuristics/delete_rules
- notus/src/heuristics/format_rules
- notus/src/heuristics/insert_rules
- quill_delta/quill_delta
- Implementation of Quill Delta format in Dart.
- quill_markdown