12
5 Comments

I built a free tool to write Ebooks in Markdown

I'm a big fan of Markdown (Love using them to write blog posts, etc), so this weekend I took some time to throw together a build pipeline that converts .md files to pdf.

After seeing that a number of others have written full ebooks in Markdown (like Adam Wathan), I wanted to try the same thing out. The pipeline was pretty quick to throw together, it basically takes multiple .md files, merges them together, converts them to HTML (+ applies CSS styles), and then generates the final pdf.

I open-sourced the project here: https://github.com/RyanFitzgerald/ebook-generator

If you'd like to see the example PDF output, you can download the sample from Github directly: https://github.com/RyanFitzgerald/ebook-generator/raw/master/output/book.pdf

It's not perfect but it gets the job done and spits out some decent looking pdfs. So feel free to use it, fork it, or just get some inspiration from it if you want to build your own!

  1. 2

    Sweet! Thanks for creating this 👍

    I'm a huge Markdown fan myself. I write pretty much everything in Markdown first. I'll definitely take it for a spin the upcoming weeks.

    1. 1

      No problem! Let me know how it goes when you get a chance to try it out.

  2. 1

    Hey @rfitz, this is great! Can you give us screenshots of the final output? I think it might help to lure some people in 😉

    Keep it up

      1. 2

        That looks great!

Trending on Indie Hackers
How I grew a side project to 100k Unique Visitors in 7 days with 0 audience 47 comments Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 27 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments How I Launched FrontendEase 13 comments