class Luce::LinkSyntax

Overview

Matches links like [blah][label] and [blah](url).

Direct Known Subclasses

Defined in:

luce/inline_syntaxes/link_syntax.cr

Constructors

Instance Method Summary

Instance methods inherited from class Luce::DelimiterSyntax

allow_intra_word? : Bool allow_intra_word?, close(parser : InlineParser, opener : Delimiter, closer : Delimiter, get_children : Proc(Array(Node)), tag : String) : Node | Nil close, on_match(parser : InlineParser, match : Regex::MatchData) : Bool on_match, requires_delimiter_run? : Bool requires_delimiter_run?, tags : Array(DelimiterTag) | Nil tags

Constructor methods inherited from class Luce::DelimiterSyntax

new(pattern : String, requires_delimiter_run : Bool = false, start_character : Int32 | Nil = nil, allow_intra_word : Bool = false, tags : Array(DelimiterTag) | Nil = nil) 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, case_sensitive : Bool = true) new

Constructor Detail

def self.new(link_resolver : Resolver | Nil = nil, pattern : String = "\\[", start_character : Int32 = Charcode::LBRACKET) #

Instance Method Detail

def close(parser : InlineParser, opener : SimpleDelimiter, closer : DelimiterTypes | Nil, get_children : Proc(Array(Node)), tag : String | Nil = nil) : Node | Nil #

def link_resolver : Resolver #