silverbulletmd / silverbullet

The knowledge hacker's notebook
https://silverbullet.md
MIT License
2.14k stars 155 forks source link

Export (Share as) PDF, ePub, other formats #635

Open simone-viozzi opened 6 months ago

simone-viozzi commented 6 months ago

Hi, thank you for the great tool.

If I need to share a note with a colleague, how can I print the silverbullet rendering of the note?

Doing print page to PDF from the browser (edge | firefox | chrome) prints only the first page.

Is there a command / plug I need to use to just save the rendered page as PDF?

Thank You!

zefhemel commented 6 months ago

There’s no great way to do this right now. The only thing that comes to mind is to open the markdown preview (Cmd-p/Ctrl-p) and copy and paste from there into a word document or some other word processor and export to PDF from there.

I do see the value of this, though, but would have to investigate how to implement this.

gorootde commented 5 months ago

In Safari on macOS all the pages are printed. In iOS / iPad OS as well. Seems to be browser related.

zefhemel commented 1 week ago

One thing I'd like to investigate is how much weight it would be to add pandoc and latex to the docker image to achieve this and offer export to docx, epub and other formats while at it.

zefhemel commented 1 week ago

Or this can be done as a separate pandoc plug which dynamically attempts to install all dependencies. That probably makes more sense. Will investigate at some point.