aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-03-03 18:14:06 -0800
committerJohn MacFarlane <[email protected]>2023-03-03 18:14:06 -0800
commit8898c5336dfdd9c43cec20cf9763f65d9ff9dbb5 (patch)
tree3cea7a9b699d709986a3b3fdf8fc04d78464ff65 /test/command
parentbecabf5d682b6f3fad1d48354ae3d8a26b74fa7a (diff)
Asciidoc writer: Properly escape `|` in table cells.
Closes #8665.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/8665.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/command/8665.md b/test/command/8665.md
new file mode 100644
index 000000000..15d926d26
--- /dev/null
+++ b/test/command/8665.md
@@ -0,0 +1,29 @@
+```
+% pandoc -f docbook -t asciidoctor
+<informaltable frame="all" rowsep="1" colsep="1">
+ <tgroup cols="1">
+ <thead>
+ <row>
+ <entry align="left" valign="top">h1</entry>
+ <entry align="left" valign="top">h2</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry align="left" valign="top">
+ <simpara>!@#$%^&amp;*(){}|~?+-',."&lt;&gt;[]\`</simpara>
+ </entry>
+ <entry align="left" valign="top">
+ <simpara>col 2</simpara>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+</informaltable>
+^D
+[cols=",",options="header",]
+|===
+|h1 |h2
+|!@#$%^&*()\{}\|~?+-',."<>[]\` |col 2
+|===
+```