News for hackers. Stuff that matters.
Re:Using Web Technologies to Print a Book by sebcat on Thursday January 10, 2019 @02:13AM (#18872117)
Unsolicited code review:

    system("multimarkdown -s ../#{part}/story.md | sed -E 's/_([^_]+)_/<em>\\1<\\/em>/g' | sed -E 's/<h1 .+<\\/h1>//g' | sed 's/<p>%<\\/p>/<p class=\"section-break\">%<\\/p>/g' > output-#{part}.html")
IMO:

    s_<p>%</p>_<p class="section-break">%</p>_g
is easier to read than:

    s/<p>%<\\/p>/<p class=\"section-break\">%<\\/p>/g
Any reason to keep the %-sign?

Those sed commands could probably be reduced to one invocation of sed(1) instead of three.

    system("cat #{htmls} | #{wkhtmltopdf_cmd} --footer-html footer.html - body.pdf")
No need to use cat.
Re:Using Web Technologies to Print a Book by rmavis on Thursday January 10, 2019 @01:00PM (#18876190)
You're right -- good suggestions. Thanks.