mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 19:37:12 +00:00
fdbfb7a807
The new commonmark-pandoc version automatically adds the attribute `wrapper="1"` on all Divs and Spans that are introduced just as containers for attributes that belong properly to their contents. So we don't need to add the attribute here. This gives much better results in some cases. Previously the wrapper attribute was being added even for explicit Divs and Spans in djot, but it is not needed in these cases.
381 B
381 B
% pandoc -f commonmark+yaml_metadata_block+sourcepos -t native
---
key:
|
value
...
Text
^D
[ Div
( ""
, []
, [ ( "wrapper" , "1" ) , ( "data-pos" , "8:1-9:1" ) ]
)
[ Para
[ Span
( ""
, []
, [ ( "wrapper" , "1" ) , ( "data-pos" , "8:1-8:5" ) ]
)
[ Str "Text" ]
]
]
]