aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-08-15 15:05:54 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-08-15 15:05:54 -0700
commit4340bd52c49b987087e123de2eae4464b300332f (patch)
tree0d8c9931dc4847521cc015dbcd7c9f68fec9da0d /test
parent2c466a15afed3edad3159791f38685c6656e8261 (diff)
downloadpandoc-4340bd52c49b987087e123de2eae4464b300332f.tar.gz
Make docx writer sensitive to `native_numbering` extension.
Figure and table numbers are now only included if `native_numbering` is enabled. (By default it is disabled.) This is a behavior change with respect to 2.14.1, but the behavior is that of previous versions. The change was necessary to avoid incompatibilities between pandoc's native numbering and third-party cross reference filters like pandoc-crossref. Closes #7499.
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Writers/Docx.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Tests/Writers/Docx.hs b/test/Tests/Writers/Docx.hs
index da25b95e0..93b56e1c2 100644
--- a/test/Tests/Writers/Docx.hs
+++ b/test/Tests/Writers/Docx.hs
@@ -31,7 +31,8 @@ tests = [ testGroup "inlines"
"docx/golden/links.docx"
, docxTest
"inline image"
- def
+ def{ writerExtensions =
+ enableExtension Ext_native_numbering (writerExtensions def) }
"docx/image_writer_test.native"
"docx/golden/image.docx"
, docxTest