-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
Explain the problem.
Consider the following input (native):
[ Figure
( "fig:foo" , [] , [ ( "label" , "1.1" ) ] )
(Caption
Nothing
[ Plain
[ Str "Figure" , Space , Str "1.1:" , Space , Str "Figure" ]
])
[ Plain
[ Image
( "" , [] , [] )
[ Str "Figure" , Space , Str "1.1:" , Space , Str "Figure" ]
( "./image.png" , "" )
]
]
]
The figure has an id and some attributes, while the image has neither. Running pandoc -f native -t markdown
produces

I would expect writing out an explicit figure. I could also accept merging figure attributes into image attributes and outputting an implicit figure.
Curiously, if the only figure attribute is id
, then it works as expected. But if either class or kv attributes are present, all attributes disappear in the output.
Pandoc version?
v3.7, v3.7.0.1