Earlier quoted context omitted.
I use pandoc+xelatex to convert GitHub style markdown to pdf [1] I've also noted down other options in the last section of the blog post, which I think should get you started. I haven't yet been able to generate a decent looking epub/mobi for technical books with code snippets. And these also depend on which reader user has. I've been asked by a few to support these formats, but majority are happy with pdf. [1] https…
Thank you for sharing your insights. Can you share more details about what issues you with epub/mobi for generating technical books? Do you have any experience with machine learning and math content? If generating epub/mobi for technical books is a problem I am guessing it would be even more of a problem to generate good looking epub/mobi with math content.
No experience with ML. Have read a bit of content for Python+Math, but only as pdf.