From ee498733ff05f993361f972dc80d92595e1165e2 Mon Sep 17 00:00:00 2001 From: Ed Ward Date: Fri, 2 Aug 2019 12:01:53 +0200 Subject: [PATCH] Added anchors pages and links addresses to the PDF --- source/css/pdf.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/css/pdf.css b/source/css/pdf.css index 2327f46b..927b3865 100644 --- a/source/css/pdf.css +++ b/source/css/pdf.css @@ -174,6 +174,9 @@ a { } /* add page number to cross references */ -a.xref::after { - content: " (page " target-counter(attr(href, url), page) ")"; +a[href^="#"]::after { + content: " (p. " target-counter(attr(href, url), page) ")"; +} +a[href^="http"]::after { + content: " (" attr(href) ")"; }