diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-09-12 15:30:29 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-09-12 15:30:29 -0700 |
commit | 6271b09c50444b107d8595f553700fa382718246 (patch) | |
tree | 04bff4b8966f96742c5253fc20f56563828d5098 /test/docx/inline_images_writer.native | |
parent | d43f9cf4146400721cf8dca15a411c2ecc1342fb (diff) | |
download | pandoc-6271b09c50444b107d8595f553700fa382718246.tar.gz |
Docx writer: make id used in native_numbering predictable.
If the image has the id IMAGEID, then we use the id ref_IMAGEID
for the figure number. Closes #7551.
This allows one to create a filter that adds a figure number
with figure name, e.g.
<w:fldSimple w:instr=" REF ref_superfig "><w:r><w:t>Figure X</w:t></w:r></w:fldSimple>
For this to be possible it must be possible to predict the
figure number id from the image id.
If images lack an id, an id of the form `ref_fig1` is used.
Diffstat (limited to 'test/docx/inline_images_writer.native')
0 files changed, 0 insertions, 0 deletions