lierdakil / pandoc-crossref

Pandoc filter for cross-references
https://lierdakil.github.io/pandoc-crossref/
GNU General Public License v2.0
909 stars 73 forks source link

insert a new figure in word #439

Closed thunderbolt-fire closed 1 month ago

thunderbolt-fire commented 1 month ago

excuse me, I find a problem that the Id of figure can't change when I insert a figure before it in word. image

lierdakil commented 1 month ago

When converting Markdown to Word, the figure numbers are typeset as plaintext, not Word's counters. So, naturally, if you then edit the Word document, the numbers will not reflect the edit. This is entirely expected.

Now, as for rationale, basically OOXML is brittle and complicated, supporting native OOXML counters is not something I can do, especially not with all the templating options pandoc-crossref supports for captions.