Skip to content

Expose the already-parsed text:outline-level as headingLevel, not just re-encoded into styleId #52

Description

@Mearman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions