Jumat, 13 Desember 2024

AsciiDoctor Table Tutorial 3

Learning Objective: Span two columns and three rows with a single cell
  1. Open the AsciiDoctor editor.
  2. Type this following Asciidoctor code sample in Asciidoctor editor:
    [options="header",cols="4*"]
    |===
    |Column 1, header row |Column 2, header row |Column 3, header row |Column 4, header row

    |Cell in column 1, row 2
    2.3+|This cell spans columns 2 and 3 and rows 2, 3, and 4 because its specifier contains a span of `2.3+`
    |Cell in column 4, row 2

    |Cell in column 1, row 3
    |Cell in column 4, row 3

    |Cell in column 1, row 4
    |Cell in column 4, row 4
    |===

  3. Result, similar like this:
    Column 1, header rowColumn 2, header rowColumn 3, header rowColumn 4, header row
    Cell in column 1, row 2This cell spans in column 2 and 3 and rows 2, 3, and 4 because its specifier contains a span of 2.3+Cell in Column 4, row 2
    Cell in column 1, row 3Cell in column 4, row 3
    Cell in column 1, row 4Cell in column 4, row 4


< Previous click AsciiDoctor Table 2 


Bibliography:

https://asciidoctor.org/
https://www.adoc-studio.app/
https://www.baeldung.com/
https://www.vogella.com/

Related Post

Tidak ada komentar:

Posting Komentar