notustohtml 0.0.7 copy "notustohtml: ^0.0.7" to clipboard
notustohtml: ^0.0.7 copied to clipboard

outdated

Convert the Notus document format to an HTML representation.

Notus to HTML #

Convert between the Notus document format and HTML.

Overview #

This project is a generic Dart package used to convert between HTML and the Notus document format. Notus documents are used by the popular Zefyr rich text editor.

The Notus format for Zefyr utilises Deltas to represent the document. These Deltas are not compatible with other editors. The Deltas used in this converter can only be used with Notus and Zefyr.

Usage #

Encode HTML #

final converter = NotusHtmlCodec();

String html = converter.encode(myNotusDocument.toDelta()); // HTML Output

Decode HTML #

final converter = NotusHtmlCodec();

Delta delta = converter.decode(myHtmlString); // Zefyr compatible Delta
NotusDocument document = NotusDocument.fromDelta(delta); // Notus document ready to be loaded into Zefyr

Contributing #

This package was created for a personal project. Pull requests are accepted on GitHub if you are interested in building upon this.

18
likes
0
pub points
70%
popularity

Publisher

verified publisherwrenn.me

Convert the Notus document format to an HTML representation.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

html, notus, quill_delta

More

Packages that depend on notustohtml