> Madoko is a fast markdown processor for writing professional articles, books, manuals, webpages and presentations, with a focus on simplicity and plain text readability.
> With Madoko you can write complex documents completely in markdown and get beautiful PDF and HTML output.
"Madoko = LATEX x Markd"
1) I have cmark installed
2) https://github.com/nathanl/.dotfiles/blob/master/bin/md_prev... is a script to render STDIN to HTML and slap the output into the middle of a template that has some basic CSS (https://github.com/nathanl/.dotfiles/blob/master/bin/md_prev...)
3) I write markdown in Vim and use keybindings to say "now output HTML from this buffer" - https://github.com/nathanl/.dotfiles/blob/ede8c98a7897ee07b7...
I like this mainly because it lets me use Vim, which for me is the most efficient tool for wrangling text. I also like avoiding WISYWIG programs that I previously fought with - eg, trying to get Word to understand which bullet points I wanted nested under which other ones was frustrating, but with markdown (and embedded HTML when necessary) I can be 100% explicit.
Sometimes I copy-paste the resulting HTML into Google Docs or elsewhere and do further tweaks, but most of the time it's enough for me as-is.
[0]: https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-...
However, whenever I have to print something, there is pretty much just one possibility in Markdown: export as pdf. And export as pdf uses Latex. Latex is cool. But if you want to customize your document, you will sooner or later need to include latex headers into the "build" process of your file, and soon you have a clusterfuck of tooling and a make file for a document that was supposed to be a simple report. And then I'd rather write it in Latex.
Does anybody have a solution for this? Some kind of print-friendly Markdown-to-PDF workflow? All the non-Latex alternatives looked horrible. In fact, I sometimes export markdown documents to Word just to print them.