class

Luce::TableSyntax

Inherits Luce::BlockSyntax < Reference < Object

Parses tables.

Instance methods

can_end_block?(parser : BlockParser) : Bool
can_parse?(parser : BlockParser) : Bool
parse(parser : BlockParser) : Node | Nil

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

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