From ebe7eb2f8e397705e7acf5910255b67db2f083c8 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 10 Nov 2023 12:24:01 +0800 Subject: [PATCH] fix: PDF page numbers start at 1 (#153) --- src/settings/template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/template.ts b/src/settings/template.ts index 20b0446..f7c4a8e 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -195,7 +195,7 @@ export const renderHighlightContent = ( note: highlight.annotation ?? undefined, color: highlight.color ?? 'yellow', positionPercent: highlight.highlightPositionPercent, - positionAnchorIndex: highlight.highlightPositionAnchorIndex, + positionAnchorIndex: highlight.highlightPositionAnchorIndex + 1, ...functionMap, } return Mustache.render(template, highlightView)