class Luce::TableSyntax
- Luce::TableSyntax
- Luce::BlockSyntax
- Reference
- Object
Overview
Parses tables.
Defined in:
luce/block_parser.crInstance Method Summary
- #can_end_block?(parser : BlockParser) : Bool
- #can_parse?(parser : BlockParser) : Bool
-
#parse(parser : BlockParser) : Node | Nil
Parses a table into its three parts:
-
#pattern : Regex
Return the regex used to identify the beginning of this block, if any.
Instance methods inherited from class Luce::BlockSyntax
can_end_block?(parser : BlockParser)
can_end_block?,
can_parse?(parser : BlockParser)
can_parse?,
parse(parser : BlockParser) : Node | Nil
parse,
parse_child_lines(parser : BlockParser) : Array(String | Nil)
parse_child_lines,
pattern : Regex
pattern
Class methods inherited from class Luce::BlockSyntax
at_block_end?(parser : BlockParser) : Bool
at_block_end?,
generate_anchor_hash(element : Element) : String
generate_anchor_hash
Instance Method Detail
Parses a table into its three parts:
- a head row of head cells (
<th>
cells) - a divider of hyphens and pipes (not rendered)
- many body rows of body cells (
<td>
cells)
def pattern : Regex
#
Description copied from class Luce::BlockSyntax
Return the regex used to identify the beginning of this block, if any.