enhance page parsing using json output and html
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.aiteacher.document;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Result of a full Marker parse: structured page data (from JSON) plus
|
||||
* native per-page markdown (from the separate Markdown API call).
|
||||
*
|
||||
* @param pages one entry per non-empty page, derived from the chunks response
|
||||
* @param htmlByPage concatenated block HTML keyed by 1-based page number
|
||||
*/
|
||||
public record ParsedBook(
|
||||
List<PageResult> pages,
|
||||
Map<Integer, String> htmlByPage
|
||||
) {}
|
||||
Reference in New Issue
Block a user