Document constructor
Document({
- Iterable<
BlockSyntax> ? blockSynTaxes, - Iterable<
InlineSyntax> ? inlineSynTaxes, - ExtensionSet? extensionSet,
- Resolver? linkResolver,
- Resolver? imageLinkResolver,
Implementation
Document({
Iterable<BlockSyntax>? blockSynTaxes,
Iterable<InlineSyntax>? inlineSynTaxes,
ExtensionSet? extensionSet,
this.linkResolver,
this.imageLinkResolver,
}) : extensionSet = extensionSet ?? ExtensionSet.commonMark {
_blockSynTaxes
..addAll(blockSynTaxes ?? [])
..addAll(this.extensionSet.blockSyntaxes);
_inlineSynTaxes
..addAll(inlineSynTaxes ?? [])
..addAll(this.extensionSet.inlineSyntaxes);
}