class Luce::LinkSyntax
- Luce::LinkSyntax
- Luce::TagSyntax
- Luce::InlineSyntax
- Reference
- Object
Overview
Matches links like [blah][label]
and [blah](url)
.
Direct Known Subclasses
Defined in:
luce/inline_parser.crConstructors
Instance Method Summary
- #close(parser : InlineParser, opener : SimpleDelimiter, closer : DelimiterTypes | Nil, get_children : Proc(Array(Node))) : Node | Nil
- #link_resolver : Resolver
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
def self.new(link_resolver : Resolver | Nil = nil, pattern : String = "\\[", start_character : Int32 = '['.ord)
#
Instance Method Detail
def close(parser : InlineParser, opener : SimpleDelimiter, closer : DelimiterTypes | Nil, get_children : Proc(Array(Node))) : Node | Nil
#