Skip to content

Commit

Permalink
Docx writer: wrap figures with id in a bookmark.
Browse files Browse the repository at this point in the history
Closes #8862.
  • Loading branch information
jgm committed May 29, 2024
1 parent a6c3945 commit c19b44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/Docx/OpenXML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ blockToOpenXML' opts (Figure (ident, _, _) (Caption _ longcapt) body) = do
(Para xs : bs) -> imageCaption (fstCaptionPara xs : bs)
(Plain xs : bs) -> imageCaption (fstCaptionPara xs : bs)
_ -> imageCaption longcapt
return $ contentsNode : captionNode
wrapBookmark ident $ contentsNode : captionNode

toFigureTable :: PandocMonad m
=> WriterOptions -> [Block] -> WS m Content
Expand Down

0 comments on commit c19b44b

Please sign in to comment.