ebook_nodejs icon indicating copy to clipboard operation
ebook_nodejs copied to clipboard

Improve PDF generation

Open fraxken opened this issue 3 years ago • 3 comments

Hello 👋

We recently finished to re-orders chapters for both english and french versions. However PDF generation is currently not that great:

  • Broken links between chapters
  • Doesn't render emojis very well
  • Code highligh is not great either
  • Image doesn't load

fraxken avatar Jan 29 '23 21:01 fraxken

Hi, Can I work on this issue?

Shaju06 avatar Mar 26 '23 07:03 Shaju06

Hi @Shaju06, yes you can work on it!

fraxken avatar Mar 26 '23 12:03 fraxken

@fraxken To fix redirection inside the document, here is a solution.

image image

but at this point, the MD links overwrite the href="#Introduction", so using the class Introduction-ref (as there is multiple redirections to the hyperlinks), it is possible to rematch on hyperlinks.

This way, it's possible to have the md and the pdf redirection.

For the rest, https://github.com/fraxken/ebook_nodejs/pull/27 resolved points

Rossb0b avatar Nov 25 '23 23:11 Rossb0b