abstract class Luce::BlockSyntax

Direct Known Subclasses

Defined in:

luce/block_parser.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.at_block_end?(parser : BlockParser) : Bool #

Return whether or not parser's current line should end the previous block


def self.generate_anchor_hash(element : Element) : String #

Generates a valid HTML anchor from the inner text of element.


Instance Method Detail

def can_end_block?(parser : BlockParser) #

def can_parse?(parser : BlockParser) #

abstract def parse(parser : BlockParser) : Node | Nil #

def parse_child_lines(parser : BlockParser) : Array(String | Nil) #

abstract def pattern : Regex #

Return the regex used to identify the beginning of this block, if any.