MarkdownMentionSyntax class
Syntax declaration for mentions within markdown
Constructors
- MarkdownMentionSyntax({String tagName = 'mention', String patternToUse = r'<@([a-zA-Z0-9]{1,})>', int idRegexGroup = 1, int? startCharacter})
Properties
- allowIntraWord → bool
-
Whether to allow intra-word delimiter runs. CommonMark emphasis and
strong emphasis does not allow this, but GitHub-Flavored Markdown allows
it on strikethrough.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- idRegexGroup → int
-
Regex group the ID is located in
final
- pattern → RegExp
-
finalinherited
- patternToUse → String
-
Pattern to use for the mention, typically r'<@(
a-zA-Z0-9{1,})>', however you can change the requirements if neededfinal - requiresDelimiterRun → bool
-
Whether this is parsed according to the same nesting rules as emphasis
delimiters.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tagName → String
-
Name of the tag to use for the element, used in conjunction with builders
and MarkdownMentionBuilder
final
-
finalinherited
Methods
-
close(
InlineParser parser, Delimiter opener, Delimiter closer, {required String tag, required List< Node> getChildren()}) → Iterable<Node> ? -
Attempts to close this tag at the current position.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMatch(
InlineParser parser, Match match) → bool -
Processes
match, adding nodes toparserand possibly advancingparser. -
toString(
) → String -
A string representation of this object.
inherited
-
tryMatch(
InlineParser parser, [int? startMatchPos]) → bool -
Tries to match at the parser's current position.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited