Overview
Marker is a Flutter/Dart package that renders Markdown by converting a parsed Abstract Syntax Tree (AST) back into Markdown text. It serves as a printer for the markdown library, enabling accurate re-output of structured Markdown content. Designed for developers working with Markdown parsing and transformation, it ensures fidelity when reconstructing Markdown from its AST representation. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it suitable for cross-platform applications.
Use cases
- Reconstructing Markdown from parsed AST
- Preserving formatting during Markdown transformations
- Building Markdown editors with round-trip editing
- Generating Markdown from structured data
- Implementing Markdown preview features
Key features
- Reverses markdown parsing to generate source text
- Maintains original formatting and structure
- Cross-platform compatibility
- Lightweight and focused on rendering
- Integrates with the markdown package
Suitable for
- Markdown processing tools
- Code editors with Markdown support
- Documentation generators
- Content management systems
- Apps requiring bidirectional Markdown handling
Considerations
- Requires the markdown package for AST input
- Limited to rendering; not for parsing
- Not designed for HTML output
- Best used in conjunction with other Markdown utilities
- No built-in syntax highlighting