feat: parse rich OneNote content resources

This commit is contained in:
2026-07-22 19:08:49 +02:00
parent 670310ea9e
commit c99615f5e6
13 changed files with 2671 additions and 6 deletions

View File

@@ -15,7 +15,14 @@ export interface OneNoteParserLimits {
maxStreamIds: number;
maxVectorBytes: number;
maxObjectReferences: number;
maxFileDataObjects: number;
maxFileDataBytes: number;
maxTotalFileDataBytes: number;
maxGraphDepth: number;
maxContentBlocks: number;
maxTextRuns: number;
maxTableCells: number;
maxInkPoints: number;
maxPages: number;
maxDiagnostics: number;
maxExtractedTextChars: number;
@@ -34,7 +41,14 @@ export const DEFAULT_ONENOTE_PARSER_LIMITS: Readonly<OneNoteParserLimits> = {
maxStreamIds: 1_000_000,
maxVectorBytes: 64 * 1024 * 1024,
maxObjectReferences: 1_000_000,
maxFileDataObjects: 10_000,
maxFileDataBytes: 256 * 1024 * 1024,
maxTotalFileDataBytes: 512 * 1024 * 1024,
maxGraphDepth: 256,
maxContentBlocks: 1_000_000,
maxTextRuns: 1_000_000,
maxTableCells: 1_000_000,
maxInkPoints: 5_000_000,
maxPages: 100_000,
maxDiagnostics: 10_000,
maxExtractedTextChars: 2_000_000,