miladtech_delta_markdown 1.0.0 copy "miladtech_delta_markdown: ^1.0.0" to clipboard
miladtech_delta_markdown: ^1.0.0 copied to clipboard

A library for converting between Markdown and Delta of the package flutter_quill.

A portable Markdown library written in Dart. It can convert between Markdown and Delta.

The converter is not ready for production

Usage #

import 'package:miladtech_delta_markdown/miladtech_delta_markdown.dart';

void main() {
  const markdown = 'Hello **Markdown**';
  print(markdownToDelta(markdown));

  const delta = r'[{"insert":"Hello "},{"insert":"Markdown","attributes":{"bold":true}},{"insert":"\n"}]';
  print(deltaToMarkdown(delta));
}
copied to clipboard

Supports #

Currently, these elements are supported:

  • Bold
  • Italic
  • Link
  • Blockquote
  • Header
  • List
  • Code Block
  • Image
  • Horizontal Rule

Does not support the following elements, because Markdown does not support them:

  • Background Color
  • Color
  • Font
  • Size
  • Strikethrough
  • Superscript/Subscript
  • Underline
  • Text Alignment
  • Text Direction
  • Formula
  • Video

Does not support the following elements, because flutter_quill does not support them:

  • Inline Code

Known limits #

Support for these elements must be implemented:

  • Indent

There are only a few tests so far, so the functionality is not yet guaranteed in complex cases.

0
likes
130
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

2024.07.06 - 2025.01.18

A library for converting between Markdown and Delta of the package flutter_quill.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

args, charcode, collection, flutter_quill

More

Packages that depend on miladtech_delta_markdown