abstract class Luce::BlockSyntax
- Luce::BlockSyntax
- Reference
- Object
Direct Known Subclasses
- Luce::BlockHTMLSyntax
- Luce::BlockquoteSyntax
- Luce::CodeBlockSyntax
- Luce::EmptyBlockSyntax
- Luce::FencedCodeBlockSyntax
- Luce::HeaderSyntax
- Luce::HorizontalRuleSyntax
- Luce::ListSyntax
- Luce::ParagraphSyntax
- Luce::SetextHeaderSyntax
- Luce::TableSyntax
Defined in:
luce/block_parser.crClass Method Summary
-
.at_block_end?(parser : BlockParser) : Bool
Return whether or not parser's current line should end the previous block
-
.generate_anchor_hash(element : Element) : String
Generates a valid HTML anchor from the inner text of element.
Instance Method Summary
- #can_end_block?(parser : BlockParser)
- #can_parse?(parser : BlockParser)
- #parse(parser : BlockParser) : Node | Nil
- #parse_child_lines(parser : BlockParser) : Array(String | Nil)
-
#pattern : Regex
Return the regex used to identify the beginning of this block, if any.
Class Method Detail
def self.at_block_end?(parser : BlockParser) : Bool
#
Return whether or not parser's current line should end the previous block
Generates a valid HTML anchor from the inner text of element.
Instance Method Detail
abstract
def pattern : Regex
#
Return the regex used to identify the beginning of this block, if any.