Hacker News new | past | comments | ask | show | jobs | submit login

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.



This is awesome, I had no idea you could use Chrome to run a webpage with JavaScript and dump its contents. Thanks for sharing!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: