Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Conversion of NCX toc navPoints to <ol> produces different structure #97

@chine

Description

@chine

I would appear as though addNavPointElements() in package_document.js is producing output that doesn't match the structure of the original navPoints.

For example:

<navPoint>
    <navLabel></navLabel>
    <content></content>
    <navPoint></navPoint>
    <navPoint></navPoint>
    ...etc.
</navPoint>

becomes:

<li>
    <a></a>
</li>
<li>
    <ol>
        <li></li>
        <li></li>
        ...etc.
    </ol>
</li>

Unless there's something of which I'm not aware, shouldn't it instead be:

<li>
    <a></a>
    <ol>
        <li></li>
        <li></li>
        ...etc.
    </ol>
</li>

The offender appears to be here

I'd be happy to submit a pull request if this is a desired change.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions