FencedCodeBlockSyntax class

Parses preformatted code blocks between two ~~~ or ``` sequences.

See the CommonMark spec: https://spec.commonmark.org/0.29/#fenced-code-blocks

Inheritance

Constructors

FencedCodeBlockSyntax()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
pattern RegExp
Gets the regex used to identify the beginning of this block, if any.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canEndBlock(BlockParser parser) bool
inherited
canParse(BlockParser parser) bool
override
getLanguageClass(String language) String
Returns the CSS class of the given language.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(BlockParser parser) Node
override
parseChildLines(BlockParser parser, [String? endBlock]) List<String>
override
toString() String
A string representation of this object.
inherited

Operators

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