DeltaToMarkdown class

Convertor from Delta to quill Markdown string.

Inheritance

Constructors

DeltaToMarkdown({Map<String, EmbedToMarkdown>? customEmbedHandlers, Map<String, CustomAttributeHandler>? customTextAttrsHandlers, DeltaToMarkdownVisitLineHandleNewLine? visitLineHandleNewLine, CustomContentHandler customContentHandler = escapeSpecialCharacters})

Properties

customContentHandler CustomContentHandler
allows overriding default behavior of the contentHandler in _handleAttribute which is responsible for special characters escaping, e.g.: _ becomes \_
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visitLineHandleNewLine DeltaToMarkdownVisitLineHandleNewLine?
allows custom handling of adding new lines to quill Markdown string
final

Methods

bind(Stream<Delta> stream) Stream<String>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(Delta input) String
Converts input and returns the result of the conversion.
override
fuse<TT>(Converter<String, TT> other) Converter<Delta, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<String> sink) Sink<Delta>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited
visitBlock(Block block, [StringSink? output]) StringSink
visitEmbed(Embed embed, [StringSink? output]) StringSink
visitLine(Line line, [StringSink? output]) StringSink
visitRoot(Root root, [StringSink? output]) StringSink
visitText(QuillText text, [StringSink? output]) StringSink

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

escapeSpecialCharacters(QuillText text, StringSink out) → void
escapes any markdown characters during markdown serialization to avoid breaking syntax
escapeSpecialCharactersRelaxed(QuillText text, StringSink out) → void
escapes markdown characters during markdown serialization but tries to avoid escaping characters when text is not formatted at all