Skip to content

Commit

Permalink
fix: PDF page numbers start at 1 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Nov 10, 2023
1 parent e485c4a commit ebe7eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebe7eb2

Please sign in to comment.