Luce::DelimiterSyntax
Inherits Luce::InlineSyntax < Reference < Object
Matches syntax that has a pair of tags and becomes an element, like
* for <em>.
Allows nested tags.
Constructors
Create a new DelimiterSyntax which matches on pattern.
The pattern is used to find the matching text. If requires_delimiter_run is passed, this syntax parses according to the same nesting rules as emphasis delimiters. If start_character is passed, it is used as a pre-matching check which is faster than matching against pattern.
Instance methods
Whether to allow intra-word delimiter runs.
CommonMark emphasis and strong emphasis does not allow this, but GitHub-flavoured Markdown allows it on strikethrough.
Attemps to close this tag at the current position.
If a tag cannot be closed at the current position (for example,
if a link reference cannot be found for a link tag's label), then
nil is returned..
If a tag can be closed at the current position, then this method
calls get_children, in which parser parses any nested text
into child nodes. The returned Array includes these children
nodes.
Processes match, adding nodes to parser and possibly advancing parser.
Will return whether the caller should advance parser by
match[0].size.
Whether this is parsed according to the same nesting rules as emphasis delimiters.