Module: Asciidoctor::ISO::Table
- Included in:
- Converter
- Defined in:
- lib/asciidoctor/iso/table.rb
Instance Method Summary collapse
Instance Method Details
#table(node) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/asciidoctor/iso/table.rb', line 4 def table(node) noko do |xml| has_body = false xml.table **attr_code(anchor: node.id) do |xml_table| %i(head body foot).reject do |tblsec| node.rows[tblsec].empty? end.each do |tblsec| has_body = true if tblsec == :body end xml_table.name node.title if node.title? table_head_body_and_foot node, xml_table end end end |