aboutsummaryrefslogtreecommitdiff
path: root/testdata/test.adoc
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-11-28 16:39:29 +0700
committerShulhan <m.shulhan@gmail.com>2020-11-29 19:11:46 +0700
commit57eac176cf5fb438bdb749913026da25642f1676 (patch)
tree66b1a0fc0bcf65d13147b4903dbe2ad9e37b2b92 /testdata/test.adoc
parentea961ec7d812554365ff418de9ee1e1cf75d9831 (diff)
downloadasciidoctor-go-57eac176cf5fb438bdb749913026da25642f1676.tar.xz
all: implement cell formatting
One of the most hardest task to finished after inline markup. It take three refactoring until we get the current implementation. To make the cell formatting works, we breaking down all table contents into cells. When parsing a cells, we lookup the content before '|' and after '\n'. If its a valid cell format, it will be set as cell format for the next cell, otherwise it will considered as normal text.
Diffstat (limited to 'testdata/test.adoc')
-rw-r--r--testdata/test.adoc37
1 files changed, 36 insertions, 1 deletions
diff --git a/testdata/test.adoc b/testdata/test.adoc
index c700e90..34cb642 100644
--- a/testdata/test.adoc
+++ b/testdata/test.adoc
@@ -542,7 +542,11 @@ With row columns less than header,
| C
-| D | E
+D
+
+E
+
+| F | G
|===
With row columns greater than header,
@@ -588,6 +592,37 @@ With column styles,
|Asciidoc | emphasis | header | literal | mono | default | strong | verse
|===
+=== Cell formatting
+
+Cell duplicated across three columns,
+
+|===
+
+|A1 |B1 |C1
+
+3*|A2-B2-C2
+
+|A3
+|B3
+|C3
+
+|===
+
+
+Cell spanning three columns,
+
+|===
+
+|A1 |B1 |C1
+
+3+|A2...C2
+
+|A3
+|B3
+|C3
+
+|===
+
== Horizontal rules