From db50be8a06eb0f9f5981f061cc1a12e4de5c507b Mon Sep 17 00:00:00 2001 From: Domenico Francesco Bruscino Date: Sun, 6 Sep 2020 15:54:28 +0200 Subject: [PATCH] Fix PDF table of content bookmarks Set the book-chapter visibility to hidden because the elements with none display are not included in the PDF docs breaking the table of content bookmarks. --- src/less/ebook/base.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/less/ebook/base.less b/src/less/ebook/base.less index 21a7942b..0102cc90 100644 --- a/src/less/ebook/base.less +++ b/src/less/ebook/base.less @@ -17,7 +17,10 @@ body { // Hide the title (only used to build PDF table of content) .book-chapter { - display: none; + visibility:hidden; + overflow:hidden; + height:0; + width:0; } }