Kareadita / Kavita

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
http://www.kavitareader.com
GNU General Public License v3.0
6.36k stars 331 forks source link

No show Table of contents in epub3 generated with Sigil #1621

Closed zeedif closed 1 year ago

zeedif commented 2 years ago

image

This problem occurs with the tables of contents of all epubs generated by Sigil software. Only occurs with the epub3 format that uses a toc.xhtml file.

<nav epub:type="toc" id="toc" role="doc-toc">
  <h1>Índice de contenido</h1>
  <ol>
    <li>
      <a href="Section0001.xhtml">Inicio</a>
    </li>
  </ol>
</nav>
<nav epub:type="landmarks" id="landmarks" hidden="">
  <h2>Hitos</h2>
  <ol>
    <li>
      <a epub:type="toc" href="#toc">Índice de contenido</a>
    </li>
  </ol>
</nav>

The problem does not seem to be in the .NET EpubReader library because I have examined your file "Epub3NavDocumentReader.cs" and a correct check is made for h1-h6 in the nav on line 87.

Using one of the demos to test the library, the table of contents is generated correctly.

image

majora2007 commented 2 years ago

@zeedif would you mind pming me a file in discord for this issue?