globalComponents property
- @Deprecated('Use blockComponents instead. Will be removed in 2.0.0.')
The built-in block components of the legacy regex pipeline.
This list exists to be spread into a custom components list, and
passing components selects the legacy pipeline: the document is
rendered as one text tree, with no incremental segment cache, no
span-level streaming reveal and no lazy sliver. A custom list also
replaces the built-ins wholesale — every component left out of it stops
rendering, which is why callers spread this list into their own.
Register custom blocks with blockComponents instead, which keeps the
modern pipeline.
Implementation
@Deprecated('Use blockComponents instead. Will be removed in 2.0.0.')
static List<MarkdownComponent> get globalComponents => [
CodeBlockMd(),
LatexMathMultiLine(),
NewLines(),
BlockQuote(),
TableMd(),
HTag(),
UnOrderedList(),
OrderedList(),
RadioButtonMd(),
CheckBoxMd(),
HrLine(),
IndentMd(),
];