Fix some recently introduced Position issues

Fixes #14710
This commit is contained in:
Bjørn Erik Pedersen
2026-04-03 18:24:00 +02:00
parent dc9b51d2e2
commit 4e91e14cb0
11 changed files with 109 additions and 40 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ type ContentRenderer interface {
// For internal use only.
ParseContent(ctx context.Context, content []byte) (converter.ResultParse, bool, error)
// For internal use only.
RenderContent(ctx context.Context, content []byte, doc any) (converter.ResultRender, bool, error)
RenderContent(ctx context.Context, content []byte, sourceInfo, doc any) (converter.ResultRender, bool, error)
}
// FileProvider provides the source file.
+2 -2
View File
@@ -133,6 +133,6 @@ func (lcp *LazyContentProvider) ParseContent(ctx context.Context, content []byte
return lcp.init.Value(ctx).ParseContent(ctx, content)
}
func (lcp *LazyContentProvider) RenderContent(ctx context.Context, content []byte, doc any) (converter.ResultRender, bool, error) {
return lcp.init.Value(ctx).RenderContent(ctx, content, doc)
func (lcp *LazyContentProvider) RenderContent(ctx context.Context, content []byte, sourceInfo, doc any) (converter.ResultRender, bool, error) {
return lcp.init.Value(ctx).RenderContent(ctx, content, sourceInfo, doc)
}
+1 -1
View File
@@ -522,7 +522,7 @@ func (r *nopContentRenderer) ParseContent(ctx context.Context, content []byte) (
return nil, false, nil
}
func (r *nopContentRenderer) RenderContent(ctx context.Context, content []byte, doc any) (converter.ResultRender, bool, error) {
func (r *nopContentRenderer) RenderContent(ctx context.Context, content []byte, sourceInfo, doc any) (converter.ResultRender, bool, error) {
return nil, false, nil
}