bookdown icon indicating copy to clipboard operation
bookdown copied to clipboard

Cross-referencing sections errors with EPUB

Open JacekPardyak opened this issue 5 years ago • 1 comments

Hi, I'm writing my book and noticed that in source of EPUB reference labels look like <a href="#Een-beetje-verliefd">3.6</a> while should be: <a href="ch003.xhtml#Een-beetje-verliefd">3.6</a> As a result my book (bookdown's book too) doesn't pass validation (https://www.ebookit.com/tools/bp/Bo/eBookIt/epub-validator) . On Google Play it doesn't rise error, but references don't work.


By filing an issue to this repo, I promise that

  • [×] I have fully read the issue guide at https://yihui.org/issue/.
  • [×] I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('bookdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/bookdown').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • [×] I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

JacekPardyak avatar May 18 '20 22:05 JacekPardyak

Just for reference this is related to another EPUB check issue: https://github.com/rstudio/bookdown/issues/766

cderv avatar Mar 29 '21 17:03 cderv