I'm writing a book about game development with C++, and I can't wait to share it with y'all, but I'm afraid I will have to write it first. I'm writing the book in Markdown and then I generate a web, epub, and a special Cohost version of each chapter.
I'm doing this with a custom build script that I'm writing in Node.js + Typescript, because of course I am. The good news is that this has proven to be remarkably straightforward! I'm using @ts-stack/markdown to parse my input, engine to render Lodash templates, sass to manage my styles, and I'm building a custom WebsiteRenderer and CohostRenderer on top of all that.
Why only two renderers when I have three build targets? Because I can use this package to render my exiting HTML to epub:
The future is bright, and it's filled with webtech! 🤩
