aboutsummaryrefslogtreecommitdiff
path: root/test/docx
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-11-20 23:43:21 -0500
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-20 23:43:21 -0500
commitd333c283cc7149462491e97e95d3ccfaefab84c2 (patch)
tree694c50ae32258b4e1abae6a64bbfcd6ff3d5dd62 /test/docx
parent2d265917b0e9efdd065349032befb96daa021503 (diff)
downloadpandoc-d333c283cc7149462491e97e95d3ccfaefab84c2.tar.gz
Docx writer: Fix bookmarks to headers with long titles.
Word has a 40 character limit for bookmark names. In addition, bookmarks must begin with a letter. Since pandoc's auto-generated identifiers may not respect these constraints, some internal links did not work. With this change, pandoc uses a bookmark name based on the SHA1 hash of the identifier when the identifier isn't a legal bookmark name. Closes #5091.
Diffstat (limited to 'test/docx')
-rw-r--r--test/docx/golden/nested_anchors_in_header.docxbin10251 -> 10196 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/test/docx/golden/nested_anchors_in_header.docx b/test/docx/golden/nested_anchors_in_header.docx
index 20f83b3ca..56f59584a 100644
--- a/test/docx/golden/nested_anchors_in_header.docx
+++ b/test/docx/golden/nested_anchors_in_header.docx
Binary files differ