aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-10-12 21:24:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-10-12 21:24:26 -0700
commit12ff835a8a8eeb374fb2992315c932809991fa63 (patch)
tree275677b6ea566ef815e52d7e84311fd68db629f9 /test
parent2007cff20318e1f086623e8fed16dcf927b1e027 (diff)
downloadpandoc-12ff835a8a8eeb374fb2992315c932809991fa63.tar.gz
Commonmark reader: add pipe_table extension after defaults.
Otherwise we get bad results for non-table, non-paragraph lines containing pipe characters. Closes #6739. See also jgm/commonmark-hs#52.
Diffstat (limited to 'test')
-rw-r--r--test/command/6739.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/command/6739.md b/test/command/6739.md
new file mode 100644
index 000000000..7c9ed24a2
--- /dev/null
+++ b/test/command/6739.md
@@ -0,0 +1,21 @@
+```
+% pandoc -f gfm
+* `--argument` This item does not have a pipe character
+* `--argA | --argB` This item has a pipe character
+^D
+<ul>
+<li><code>--argument</code> This item does not have a pipe character</li>
+<li><code>--argA | --argB</code> This item has a pipe character</li>
+</ul>
+```
+
+```
+% pandoc --mathjax -f gfm+tex_math_dollars
+* $|x|$
+* $|y|$
+^D
+<ul>
+<li><span class="math inline">\(|x|\)</span></li>
+<li><span class="math inline">\(|y|\)</span></li>
+</ul>
+```