aboutsummaryrefslogtreecommitdiff
path: root/test/command/7216.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-04-28 23:30:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-04-28 23:32:37 -0700
commit80e2e88287f43d88ea92a77779b25e161c81f67b (patch)
tree91089036dc579894ac5eb837475bfa4a6291d9d7 /test/command/7216.md
parent8fe7e8dd5c2667f0cac5af67ff1a02872eeb9933 (diff)
downloadpandoc-80e2e88287f43d88ea92a77779b25e161c81f67b.tar.gz
Smarter smart quotes.
Treat a leading " with no closing " as a left curly quote. This supports the practice, in fiction, of continuing paragraphs quoting the same speaker without an end quote. It also helps with quotes that break over lines in line blocks. Closes #7216.
Diffstat (limited to 'test/command/7216.md')
-rw-r--r--test/command/7216.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/command/7216.md b/test/command/7216.md
new file mode 100644
index 000000000..cab3b9689
--- /dev/null
+++ b/test/command/7216.md
@@ -0,0 +1,19 @@
+```
+pandoc -t latex
+"This is some text in quotes. Another paragraph by the same speaker follows. The first paragraph should have no close quote.
+
+"The second paragraph should have open and close quotes."
+
+| "Open quote on this line,
+| Close quote on the next line."
+| "Quotes on the same line."
+^D
+``This is some text in quotes. Another paragraph by the same speaker
+follows. The first paragraph should have no close quote.
+
+``The second paragraph should have open and close quotes.''
+
+``Open quote on this line,\\
+Close quote on the next line.''\\
+``Quotes on the same line.''
+```