Companion to ExaDev/document-schema.js#13, which proposes a canonical headingLevel?: number field on ContentParagraph. This is the odt-side work, and it's the smallest of the three format changes that issue names — the number is already being read.
src/typed/odt/read.ts already extracts the real text:outline-level attribute off text:h (with the ODF-spec default of 1 when absent, and graceful degradation on a malformed value) — but it currently only uses that number to build the docx-equivalent styleId string ('Heading' + level), then discards the number itself. Once headingLevel exists on the shared schema, populate it directly from the same already-parsed value, alongside (not instead of) the existing styleId encoding.
Blocked by ExaDev/document-schema.js#13 landing the field itself first.
Companion to ExaDev/document-schema.js#13, which proposes a canonical
headingLevel?: numberfield onContentParagraph. This is the odt-side work, and it's the smallest of the three format changes that issue names — the number is already being read.src/typed/odt/read.tsalready extracts the realtext:outline-levelattribute offtext:h(with the ODF-spec default of 1 when absent, and graceful degradation on a malformed value) — but it currently only uses that number to build the docx-equivalentstyleIdstring ('Heading' + level), then discards the number itself. OnceheadingLevelexists on the shared schema, populate it directly from the same already-parsed value, alongside (not instead of) the existingstyleIdencoding.Blocked by ExaDev/document-schema.js#13 landing the field itself first.