mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
Word gives the captions it inserts the paragraph style "caption", and docx didn't write it, so a paragraph with `style: "Caption"` came out in Normal: Word drops a style the document doesn't define. docx now writes the style as Word writes it when it inserts a caption (small italic text in the theme's second dark color, with space after), and `styles.default.caption` changes it. A Caption style in paragraphStyles or externalStyles still takes its place. A new docs page shows captions with SequentialIdentifier, their numbers written by docx/layout, cross-references to them with a bookmark and NumberedItemReference, and a table of figures, none of which the docs covered. Claude-Session: https://claude.ai/code/session_01X5zGDL3sgGVBMXPfny376c Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>