Open xeruf opened 2 years ago
PDF Export would be interessting, but I wonder what for example should happen with tabs, collapsibles and bitflow tasks. Is it for printing vor for provising an offline Version? Offline support can rather easily be implemented. Even the export as an Desktop app with electron should be easy to implement.
This feature is mainly intended for printing. I suspect the easiest thing to do will be to simply omit the Hyperbook features while the PDF is generated.
I think the best result would be to convert the hyperbook markdown to regular markdown by removing or switching out the directives and then use pandoc to create a PDF. I think for tabs and collapsible they would probably just be presented after each other. Maybe a pandoc latex template for hyperbook would also be a nice addition to have a more consistent style.
I anyone will try to do something like this I really would appreciate it, but I have no time working on that feature for now.
I would suggest building a CLI tool hyperbook-to-pdf
or extending to current CLI tool hyperbook pdf
.
No problem. This ferature is not that important anyway. But I'll look into it if I have time for that. Thank you for your support!
This seems to be a good starting point https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber
How about markdown-pdf
?
Interesting. The approach would be different:
Personally, I think the rebber approach would be harder to set up but would also lead to more pleasing results.
Since, hyperbook switched to using plain remark, rebber would be a perfect fit.
Would it make sense to implement a PDF Export in Hyperbook or should I rather do this by stripping special syntax and using something like pandoc? I want to provide an easily downloadable offline version of our documentation (no need to be interactive except for links), and it would be nice if something like the glossary would still work.