aboutsummaryrefslogtreecommitdiff
path: root/testdata/test.adoc
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-11-20 02:32:09 +0700
committerShulhan <m.shulhan@gmail.com>2020-11-23 00:33:31 +0700
commitf1c0969da998942ea3ef77d041b276b46ec685a6 (patch)
treea9aa248062e7d2d337aea2eda28750457b3d44f8 /testdata/test.adoc
parent4f24d95fa5cb8c7db3e4d123460f83fa2b489cdf (diff)
downloadasciidoctor-go-f1c0969da998942ea3ef77d041b276b46ec685a6.tar.xz
all: implement parser for table
Currently supported format with "cols" options are, * setting number of columns, * setting the horizontal and vertical alignment * setting the column width
Diffstat (limited to 'testdata/test.adoc')
-rw-r--r--testdata/test.adoc55
1 files changed, 55 insertions, 0 deletions
diff --git a/testdata/test.adoc b/testdata/test.adoc
index c5689e9..c35dc6d 100644
--- a/testdata/test.adoc
+++ b/testdata/test.adoc
@@ -526,6 +526,61 @@ What is the answer to the Ultimate Question?:: 42
A new paragraph.
+== Table
+
+|===
+A | B
+
+| C
+D | E
+|===
+
+With row columns less than header,
+
+|===
+| A | B
+
+| C
+
+| D | E
+|===
+
+With row columns greater than header,
+
+|===
+| A | B
+
+| C | D | E
+|===
+
+=== Column Formatting
+
+[cols="3*"]
+|===
+|Cell in column 1, row 1
+|Cell in column 2, row 1
+|Cell in column 3, row 1
+
+|Cell in column 1, row 2
+|Cell in column 2, row 2
+|Cell in column 3, row 2
+|===
+
+
+=== Column width
+
+[cols="<.<,^.^3,>.>6"]
+|===
+|Cell in column 1, row 1
+|Cell in column 2, row 1
+|Cell in column 3, row 1
+
+|Cell in column 1, row 2
+|Cell in column 2, row 2
+|Cell in column 3, row 2
+|===
+
+
== Horizontal rules
'''