parchment_to_html 1.0.0+1 copy "parchment_to_html: ^1.0.0+1" to clipboard
parchment_to_html: ^1.0.0+1 copied to clipboard

A Dart package for converting between Parchment and HTML formats.

parchment_to_html #

Parchment To HTMl

Note #

HTML to Parchment for Flutter applications based on Notus to Html. It uses a document model named Parchment based on Notus.

Getting Started #

This project is a generic Dart package used to convert between HTML and the Parchment document format.It is a replica of Notus to Html package for Zefyr but since Zefyr is not longer manage and the alternative is fleather which doesn't use Notus but Parchment , so to convert your parchement to html

Usage #

Encode HTML #

 const converter = ParchmentHtmlCodec();
 String html = converter.encode(doc.toDelta());
 log(html); // The HTML representation of the ParchmentDocument

Decode HTML #

 Delta delta = converter.decode(html); // Fleather compatible Delta
 ParchmentDocument document = ParchmentDocument.fromDelta(delta);
 log(document.toString());

Credits #

This project is inspired by Notus to Html. Credit is given to the original project for its contribution to this package.

3
likes
135
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package for converting between Parchment and HTML formats.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

cupertino_icons, fleather, flutter, html, parchment_delta

More

Packages that depend on parchment_to_html