Skip to content

Header elements are not converted to Header widgets #47

@maks

Description

@maks

The PDF widget library provides a Header widget but currently HTML header (H1, H2 etc) elements are converted into TextSpans inside RichText's. I can see how that allows for more flexibility but it also means that very useful functionality of the PDF widget library TableOfContent widget cannot be used to compile a table of contents page.

@alihassan143 I'm happy to contribute a PR for this but I'm not sure if just replacing the existing mapping of Header elements to a Header widget would be ok for you as you have code that supports using AnnotationUrl to I guess allow for headers in the PDF to be url links and I'm not sure that can be preserved by using Header widget unless a child TextSpan widget was added to the Header widget perhaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions