docsy_markdown 0.1.2 copy "docsy_markdown: ^0.1.2" to clipboard
docsy_markdown: ^0.1.2 copied to clipboard

Markdown import and export support for Docsy, the modular Flutter WYSIWYG editor. Convert documents seamlessly between Docsy and Markdown.

Docsy Markdown #

The Docsy Markdown package provides import and export functionality for the Docsy editor.
It allows you to serialize Docsy documents into Markdown and restore them back into Docsy.

Try it Live

✨ Features #

  • Import and export any Docsy Document to Markdown.
  • Supports paragraphs, headings, quotes, lists, dividers, inline formatting (bold, italic, underline, code, links).
  • Clean and Git-friendly output.

🚀 Installation #

Add this to your pubspec.yaml:

dependencies:
  docsy_markdown: ^0.1.1

📖 Usage #

import 'package:docsy/docsy.dart';
import 'package:docsy_markdown/docsy_markdown.dart';

void main() {
  final doc = Document([
    ParagraphNode(inlines: [
      TextSpanNode("Hello ", marks: TextMarks()),
      TextSpanNode("world", marks: TextMarks(bold: true)),
    ]),
  ]);

  final md = DocsyMarkdownCodec().encode(doc);
  print(md); // Hello **world**
}

📷 Example #

Hello **world**

📜 License #

MIT License. See LICENSE.

1
likes
140
points
147
downloads

Documentation

API reference

Publisher

verified publisherastrodevs.space

Weekly Downloads

Markdown import and export support for Docsy, the modular Flutter WYSIWYG editor. Convert documents seamlessly between Docsy and Markdown.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

docsy, flutter, markdown

More

Packages that depend on docsy_markdown