(Better) export to PDF
This is a continuation of https://github.com/hackmdio/codimd/issues/33.
There seem to be a number of issues requesting a better way to export notes to pdf. To the best of my understanding, currently exporting notes to pdf is only allowed in slide mode, and via an error-prone and not user-friendly procedure that involves modifying the URL manually. There has to be a better way.
Exporting to pdf is invaluable for a number of reasons: it's usually easier to read pdfs on mobile devices than web pages, it's much easier to print and can be accessed offline (e.g., on a plane). Can you please work on a way to do so that works in all modes (view, slide, book) and is user-friendly? Thank you!
I really like TOC in PDF, too.
This is indeed a needed feature. The pdf is easier for the general audience to highlight/comment too. I know Hackmd has its comment bubble, but not all people want to learn new things. Many people just work on Word and PDF is the most they can go.
I will need this too. It will be very useful for using HackMD to do my assignments.
I think one of the issues is with puppeteer support. Firefox is actively working on implementing puppeteer but it is not currently feature complete: https://aslushnikov.github.io/ispuppeteerfirefoxready/
Apparently, exporting to pdf is not yet supported (at least not documented at all, like anywhere). However, I've found some mentions where it looks like such a feature does exist: by appending /pdf to the url (so https://codimd.server/noteid/pdf) it is supposed to print a pdf (see hackmd api and codimd-cli). When I do that on my server, though, I get a 403 Forbidden oh no. page. So, is pdf export really implemented? If not, why both cli have that as a features? I've got to say that I'm really confused by this situation