summaryrefslogtreecommitdiffstats
path: root/markup/converter/converter.go
diff options
context:
space:
mode:
Diffstat (limited to 'markup/converter/converter.go')
-rw-r--r--markup/converter/converter.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/markup/converter/converter.go b/markup/converter/converter.go
index b66cb8730..57980f138 100644
--- a/markup/converter/converter.go
+++ b/markup/converter/converter.go
@@ -135,10 +135,11 @@ func (b Bytes) Bytes() []byte {
// DocumentContext holds contextual information about the document to convert.
type DocumentContext struct {
- Document any // May be nil. Usually a page.Page
- DocumentID string
- DocumentName string
- Filename string
+ Document any // May be nil. Usually a page.Page
+ DocumentLookup func(uint64) any // May be nil.
+ DocumentID string
+ DocumentName string
+ Filename string
}
// RenderContext holds contextual information about the content to render.