dvcrn / markright

➡ Electron powered markdown editor with live preview
GNU General Public License v3.0
914 stars 55 forks source link

Add "Export as PDF" functionality #46

Open djungowski opened 8 years ago

djungowski commented 8 years ago

It would be nice to have the possibility to export a document to PDF, so that others that don't have a Markdown Editor can read the document too

sam3d commented 8 years ago

This is an interesting idea, and as @dvcrn would say: "pull requests are always welcome"!

On a more practical note, exporting .md files to a PDF using the GitHub markdown formatting is a common feature among lots of markdown editors. I imagine there are a wealth of libraries out there that could take care of the heavy lifting that shouldn't be too hard to implement.

dvcrn commented 8 years ago

I think for this we could use something like jsPDF to directly export the HTML tree as PDF. I didn't test it yet but if someone wants to tree, please go for it!

vossilius commented 7 years ago

+1