class Luce::ImageSyntax

Overview

Matches images like ![alternate text](url "optional title") and ![alternate text][lable].

Defined in:

luce/inline_parser.cr

Constructors

Instance methods inherited from class Luce::LinkSyntax

close(parser : InlineParser, opener : SimpleDelimiter, closer : DelimiterTypes | Nil, get_children : Proc(Array(Node))) : Node | Nil close, link_resolver : Resolver link_resolver

Constructor methods inherited from class Luce::LinkSyntax

new(link_resolver : Resolver | Nil = nil, pattern : String = "\\[", start_character : Int32 = '['.ord) new

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) #