aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-06-19 11:15:49 -0700
committerJohn MacFarlane <[email protected]>2023-06-19 11:18:30 -0700
commit725ec09a104d8ad486989f32a4c55d9d731629ea (patch)
tree50396bdf1a3bc11e898b9bffe2d0b494005768d8 /test/command
parent3a20ea3aca5891d9c2b6d9d0a301cff286602ae6 (diff)
Make `implicit_figures` work again in commonmark reader.
Support for this (introduced in #6350) disappeared when we made an architectural change.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/6350.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/command/6350.md b/test/command/6350.md
new file mode 100644
index 000000000..14093fce1
--- /dev/null
+++ b/test/command/6350.md
@@ -0,0 +1,29 @@
+```
+% pandoc -f commonmark+implicit_figures -t native
+![caption](image.jpg){#ident width="100%"}
+^D
+[ Para
+ [ Image
+ ( "" , [] , [] ) [ Str "caption" ] ( "image.jpg" , "" )
+ , Str "{#ident"
+ , Space
+ , Str "width=\"100%\"}"
+ ]
+]
+
+```
+
+```
+% pandoc -f commonmark -t native
+![caption](image.jpg){#ident width="100%"}
+^D
+[ Para
+ [ Image
+ ( "" , [] , [] ) [ Str "caption" ] ( "image.jpg" , "" )
+ , Str "{#ident"
+ , Space
+ , Str "width=\"100%\"}"
+ ]
+]
+
+```