fix: PDF page numbers start at 1 (#153)

This commit is contained in:
Hongbo Wu
2023-11-10 12:24:01 +08:00
committed by Hongbo Wu
parent e485c4ab20
commit ebe7eb2f8e
+1 -1
View File
@@ -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)