MdcParser class final

Parses Markdown Components source into an immutable, renderer-neutral AST.

A parser is reusable but deliberately holds no source cache. The content owner can cache completed MdcDocument values using its own lifecycle and invalidation rules.

Constructors

MdcParser({List<MdcTransform> transforms = const <MdcTransform>[], bool headingIds = true})
Creates a reusable parser configuration.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
headingIds → bool
Whether headings without explicit IDs receive stable generated IDs.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transforms → List<MdcTransform>
Ordered transforms applied after syntax parsing.
final

Methods

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

Operators

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