pandoc-3.12.1: test/command/11845.md
A heading's bookmark is written inside the heading's paragraph, around its
text, rather than around its whole section, so a link to the heading
survives a docx round trip, and a screen reader meets the bookmark at the
heading (#11845).
```
% pandoc -f markdown -t docx -o - | pandoc -f docx -t native
# Costs {#price}
Back to [costs](#price), on to [later](#later-part).
# Later Part
End.
^D
[ Header 1 ( "costs" , [] , [] ) [ Str "Costs" ]
, Para
[ Str "Back"
, Space
, Str "to"
, Space
, Link ( "" , [] , [] ) [ Str "costs" ] ( "#costs" , "" )
, Str ","
, Space
, Str "on"
, Space
, Str "to"
, Space
, Link
( "" , [] , [] ) [ Str "later" ] ( "#later-part" , "" )
, Str "."
]
, Header
1
( "later-part" , [] , [] )
[ Str "Later" , Space , Str "Part" ]
, Para [ Str "End." ]
]
```