From d333c283cc7149462491e97e95d3ccfaefab84c2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 20 Nov 2018 23:43:21 -0500 Subject: 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. --- test/docx/golden/nested_anchors_in_header.docx | Bin 10251 -> 10196 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'test/docx') diff --git a/test/docx/golden/nested_anchors_in_header.docx b/test/docx/golden/nested_anchors_in_header.docx index 20f83b3ca..56f59584a 100644 Binary files a/test/docx/golden/nested_anchors_in_header.docx and b/test/docx/golden/nested_anchors_in_header.docx differ -- cgit v1.2.3