aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorBrian Leung <29217594+leungbk@users.noreply.github.com>2019-07-10 18:35:01 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-07-10 18:35:01 -0700
commit1d9ff85b451f976b1d140f06e9eee56bc3fadf33 (patch)
tree7cbe4f4a4bff49c05107806393826e38363d5434 /test/command
parent95d7d1b908facce4887dba91748a900f264fb1f1 (diff)
downloadpandoc-1d9ff85b451f976b1d140f06e9eee56bc3fadf33.tar.gz
RST reader: keep `name` property in `imgAttr`. (#5637)
Closes #5619.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5619.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/command/5619.md b/test/command/5619.md
new file mode 100644
index 000000000..776d57acc
--- /dev/null
+++ b/test/command/5619.md
@@ -0,0 +1,10 @@
+```
+% pandoc -f rst -t native
+.. figure:: img1.jpg
+ :width: 1in
+ :name: test
+
+ The caption. Here's what piggybacking on caption would look like {#fig:1}
+^D
+[Para [Image ("test",[],[("width","1in")]) [Str "The",Space,Str "caption.",Space,Str "Here's",Space,Str "what",Space,Str "piggybacking",Space,Str "on",Space,Str "caption",Space,Str "would",Space,Str "look",Space,Str "like",Space,Str "{#fig:1}"] ("img1.jpg","fig:")]]
+```