Document class

Maintains the context needed to parse a Markdown document.

Constructors

Document({Iterable<BlockSyntax>? blockSyntaxes, Iterable<InlineSyntax>? inlineSyntaxes, ExtensionSet? extensionSet, Resolver? linkResolver, Resolver? imageLinkResolver, _BlockParserBuilder blockParserBuilder = _newBlockParser, _InlineParserBuilder inlineParserBuilder = _newInlineParser, dynamic options, bool encodeHtml = true, bool checkable = false, bool emptyListDisabled = false})
Document.plain(_BlockParserBuilder _blockParserBuilder, _InlineParserBuilder _inlineParserBuilder, {ExtensionSet? extensionSet, Resolver? linkResolver, Resolver? imageLinkResolver, dynamic options, bool encodeHtml = true, bool checkable = false, bool emptyListDisabled = false})
A lightweight, full-customized document.

Properties

blockSyntaxes Iterable<BlockSyntax>
no setter
checkable bool
final
emptyListDisabled bool
Whether to disable the generation of nested lists for empty content, such as * * A. If false (default), <ul><li><ul><li>A</li></ul></li></ul> will be generated. If true, `
final
encodeHtml bool
final
extensionSet ExtensionSet
final
hashCode int
The hash code for this object.
no setterinherited
imageLinkResolver Resolver?
final
inlineSyntaxes Iterable<InlineSyntax>
no setter
linkReferences Map<String, LinkReference>
final
linkResolver Resolver?
final
options → dynamic
An application specific instance.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBlockParser(List<String> lines) BlockParser
getInlineParser(String? text) InlineParser
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseInline(String? text) List<Node>
Parses the given inline Markdown text to a series of AST nodes.
parseLines(List<String> lines, [int offset = 0]) List<Node>
Parses the given lines of Markdown to a series of AST nodes.
toString() String
A string representation of this object.
inherited

Operators

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