News for hackers. Stuff that matters.
Re:Strapdown.js – Instant and elegant Markdown documents by prideout on Friday June 15, 2018 @08:09PM (#17324852)
This is nice for iterating, but for an actual deployment it's not so nice for three reasons:

    (1) Prevents outside navigation into named anchors.
    (2) Makes the content slow to load.
    (3) Suffers from a flash of unstyled content.
You can use chrome to bake out the HTML with a one-liner:

    chrome mydoc_md.html --headless --dump-dom --virtual-time-budget=1000 > mydoc.html
The resulting HTML is fast to load and just as beautiful.
Re:Strapdown.js – Instant and elegant Markdown documents by goodells on Friday June 15, 2018 @08:14PM (#17324874)
This is awesome, I had no idea you could use Chrome to run a webpage with JavaScript and dump its contents. Thanks for sharing!