Skip to content
pubscout

delta_to_html

0.2.2, released 4 years ago by mailbyproton.tech

Convert Delta format to HTML strings.

WASM-ready
$ flutter pub add delta_to_html
Source repository

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.