class Luce::StrikethroughSyntax
- Luce::StrikethroughSyntax
- Luce::TagSyntax
- Luce::InlineSyntax
- Reference
- Object
Overview
Matches strikethrough syntax according to the GFM spec.
Defined in:
luce/inline_parser.crConstructors
Instance Method Summary
-
#close(parser : InlineParser, opener : Delimiter, closer : Delimiter, get_children : Proc(Array(Node))) : Node | Nil
Attemps to close this tag at the current position.
Instance methods inherited from class Luce::TagSyntax
allow_intra_word? : Bool
allow_intra_word?,
close(parser : InlineParser, opener : Delimiter, closer : Delimiter, get_children : Proc(Array(Node))) : Node | Nil
close,
on_match(parser : InlineParser, match : Regex::MatchData) : Bool
on_match,
requires_delimiter_run? : Bool
requires_delimiter_run?
Constructor methods inherited from class Luce::TagSyntax
new(pattern : String, requires_delimiter_run : Bool = false, start_character : Int32 | Nil = nil, allow_intra_word : Bool = false)
new
Instance methods inherited from class Luce::InlineSyntax
matches?(parser : InlineParser, start_match_pos : Int32 | Nil = nil) : Bool
matches?,
on_match(parser : InlineParser, match : Regex::MatchData) : Bool
on_match,
pattern : Regex
pattern
Constructor methods inherited from class Luce::InlineSyntax
new(pattern : String, start_character : Int32 | Nil = nil)
new
Constructor Detail
Instance Method Detail
def close(parser : InlineParser, opener : Delimiter, closer : Delimiter, get_children : Proc(Array(Node))) : Node | Nil
#
Description copied from class Luce::TagSyntax
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 Node
incorporates these child
nodes.