Hwaro::Content::Processors::TableParser::Table
Inherits Struct / Value / Object
Represents a parsed table
Constructors
new(headers : Array(String), alignments : Array(Hwaro::Content::Processors::TableParser::Alignment), rows : Array(Array(String)))
SourceInstance methods
alignments
Sourcealignments=(alignments : Array(Alignment))
Sourceheaders
Sourceheaders=(headers : Array(String))
Sourcerows
Sourcerows=(rows : Array(Array(String)))
Sourceto_html(math : Bool = false, flags : InlineMarkdown::Flags | Nil = nil, hooks : RenderHooks::HookRenderContext | Nil = nil) : String
Convert table to HTML. math: true keeps $…$ spans in cells
untransformed for the later math pass (see InlineMarkdown.render).
With a hooks context whose table hook is configured, the stock
markup (plus its thead/tbody sections) is handed to
hooks.render_table instead of returned directly.