MicroPad / MicroPad-Core

µPad (MicroPad) is an open digital note taking app
https://getmicropad.com
Mozilla Public License 2.0
234 stars 22 forks source link

Export notebooks/notes as pdf files with Markdown rendered #176

Open AndrewMD888 opened 5 years ago

AndrewMD888 commented 5 years ago

It would be great if users could export notebooks and notes as pdf files with all of the Markdown formatting remaining intact. That would allow users to refer back to the notes' content on a file-by-file basis and see the same formatting display that you get while in the program itself.

NickGeek commented 5 years ago

Sorry, I'm not quite sure I understand. What markdown formatting isn't intact when you export?

AndrewMD888 commented 5 years ago

Right now when you export notes, the markdown files just display your text with the markdown characters as it appears in the text editor. I was thinking of expanding the export feature to make the note(s) into PDF files that displays the text as you see it on the MicroPad canvas, with the Markdown formatting rendered in the file. This would enable you to basically have a formatted PDF file of your notes for easy reading. As I mentioned, this does not happen with the Markdown files as those files just display the text content and Markdown syntax without the Markdown being actually rendered. Is this possible?

NickGeek commented 5 years ago

Ah, there is currently an export to PDF option (via printing), however it could definitely be improved.

AndrewMD888 commented 5 years ago

Ah, I see! I completely missed that option before... it does what I detailed above. However, it does seem slightly buggy because every time I export a note as a PDF, it closes MicroPad. I think it crashes because one time I got a dialog box stating that an exception was thrown. My PDF file was saved properly, though. I would definitely like to see this feature improved.

NickGeek commented 5 years ago

https://github.com/MicroPad/Electron/issues/29 also raises some issues.