MarkdownDocument class final

Parsed Markdown rendered by MarkdownView.

Constructors

MarkdownDocument({required List<MarkdownBlock> blocks, required List<MarkdownLink> links, required String source, required int blockCount, required int headingCount, required int listItemCount, required int linkCount, required int codeBlockCount, required int codeLineCount})
const
MarkdownDocument.parse(String source, {int? maxLineLength = 1000, int tabSize = 2})
factory

Properties

blockCount → int
Number of parsed rows, including blank rows and fenced-code rows.
final
blocks → List<MarkdownBlock>
Parsed visible rows in document order.
final
codeBlockCount → int
Number of fenced code blocks in the source.
final
codeLineCount → int
Number of code rows contained by fenced code blocks.
final
hashCode → int
The hash code for this object.
no setterinherited
headingCount → int
Number of heading rows in blocks.
final
isEmpty → bool
no setter
linkCount → int
Number of links in links.
final
Links discovered outside fenced code blocks, in document order.
final
listItemCount → int
Number of ordered and unordered list-item rows in blocks.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
Sanitized Markdown source represented by this document.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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