diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-11-20 23:43:21 -0500 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-11-20 23:43:21 -0500 |
commit | d333c283cc7149462491e97e95d3ccfaefab84c2 (patch) | |
tree | 694c50ae32258b4e1abae6a64bbfcd6ff3d5dd62 /Makefile | |
parent | 2d265917b0e9efdd065349032befb96daa021503 (diff) | |
download | pandoc-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 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ version?=$(shell grep '^[Vv]ersion:' pandoc.cabal | awk '{print $$2;}') pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1) SOURCEFILES?=$(shell find pandoc.hs src test -name '*.hs') BRANCH?=master -RESOLVER=lts-12 +RESOLVER?=lts-12 GHCOPTS=-fdiagnostics-color=always -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Werror=missing-home-modules -Widentities -Wcpp-undef -fhide-source-paths -j +RTS -A32M -RTS # Later: # -Wpartial-fields (currently used in Powerpoint writer) |