diff options
Diffstat (limited to 'resources/page/page.go')
-rw-r--r-- | resources/page/page.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/resources/page/page.go b/resources/page/page.go index 00e716e83..84153b8c6 100644 --- a/resources/page/page.go +++ b/resources/page/page.go @@ -109,9 +109,13 @@ type ContentProvider interface { // ContentRenderer provides the content rendering methods for some content. type ContentRenderer interface { - // RenderContent renders the given content. + // ParseAndRenderContent renders the given content. // For internal use only. - RenderContent(ctx context.Context, content []byte, renderTOC bool) (converter.Result, error) + ParseAndRenderContent(ctx context.Context, content []byte, enableTOC bool) (converter.ResultRender, error) + // 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) } // FileProvider provides the source file. |