delta_to_html
0.2.2, released 4 years ago by mailbyproton.tech
Convert Delta format to HTML strings.
WASM-ready
What it does
This lightweight package converts Delta JSON representations into HTML. It supports a variety of elements such as text formatting, links, lists, headers, code blocks, and media.
AI-written summary of version 0.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to convert Delta documents into HTML strings
- You are working with flutter_quill content and need to output HTML
Skip it when
- You need to parse HTML back into Delta
- You require superscript or subscript formatting support
Strengths
- Lightweight with no external dependencies
- Supports a wide range of Delta formatting elements
Weaknesses
- Does not support superscript or subscript elements
- Does not support formulas due to delta output issues
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:delta_to_html/delta_to_html.dart';
void main() {
List rawDelta = [{"insert":"Hello "},{"insert":"HTML","attributes":{"bold":true}}];
print(DeltaToHTML.encodeJson(rawDelta));
}Alternatives
Packages that do the same job and could replace delta_to_html.
- flutter_quill_delta_from_html
Converts HTML strings to Quill Delta format for use with Quill editor.
55Compare - vnlunar
Convert between Vietnamese Lunar Calendar and Solar calendars.
61Compare - vsc_quill_delta_to_html
Converts Quill's Delta format to HTML.
50Compare - markdown_quill
Convert between quill delta format and markdown.
48Compare