JoelOtter / kajero

Interactive JavaScript notebooks with clever graphing
Other
1.87k stars 110 forks source link

[Suggestion] Generate pdf out of markdown #47

Open pedro93 opened 8 years ago

pedro93 commented 8 years ago

This is merely a suggestion for an already cool project. Having the ability to generate a pdf version of the notebook, to view the content in offline mode or where a browser is not indicated, for example kindle/tablets. Removes the dynamic and graph functionality, but libraries like ConTeXt and pandoc could be helpful in this.

JoelOtter commented 8 years ago

This is a cool idea, but I think generating PDFs from Markdown is:

I think the whole point of Kajero is the interactivity, really, so I'm going to close this. Thanks!

pedro93 commented 8 years ago

Just a note, that link you provided and similar services I have seen do not take styling into account so the resulting pdf is not as "beautiful" as when rendered in the browser, which is part of the reason for my initial suggestion.

JoelOtter commented 8 years ago

OK, that's a fair point. I'm reluctant to include PDF rendering in the application itself - I'd like to keep the JS bundle as small as I possibly can - but perhaps this could be done using a command-line tool, in a similar fashion to those already provided.

In addition, maybe some way to save the notebooks for offline use - perhaps by bundling the HTML, JS, data (or results) into one file - could be a nice feature.

I'll reopen this to track these, though I've no idea when I'll get a chance to look into it further. 😄

pedro93 commented 8 years ago

I agree with your thoughts that such functionality should be "external" to the project. With regards to bundling all the content perhaps webpack or browserify could be a starting point in the future.