aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-08-22 12:16:57 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-08-22 12:43:15 +0300
commit937b92cd304a6a404f750c7f9a894adfb3638d01 (patch)
treefa55798ebb125f5a1bc97e4bda92d30ddc18fec4 /test
parent3b5949e8f278a8d407777f567fdaf8e421323ced (diff)
downloadpandoc-937b92cd304a6a404f750c7f9a894adfb3638d01.tar.gz
HTML reader: extract spaces inside links instead of trimming them
Fixes #4845
Diffstat (limited to 'test')
-rw-r--r--test/command/4845.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command/4845.md b/test/command/4845.md
new file mode 100644
index 000000000..093161ac7
--- /dev/null
+++ b/test/command/4845.md
@@ -0,0 +1,6 @@
+```
+% pandoc -f html -t native
+x<a href="/foo"> leading trailing space </a>x
+^D
+[Plain [Str "x",Space,Link ("",[],[]) [Str "leading",Space,Str "trailing",Space,Str "space"] ("/foo",""),Space,Str "x"]]
+```