The 3D Web Coder

Live Web Site Render Markdown via Showdown

Theo Armour raised a very valid point in a comment on my last post on Hackergarten, Chromium and Markdown:

Welcome to the world of Markdown – as used by GitHub, StackOverflow, Reddit and in many more sites. BTW, I use Showdown to convert Markdown to HTML in all my JavaScript apps.

Happily, that fits exactly what I was thinking of looking into next.

If each page generates its own HTML from the embedded MD, there is no need more for any external intermediate conversion steps.

Looking at the Showdown documentation also led me to discover some important precursors, e.g., atx, the true structured text format, and Setext. Interesting to know where this all comes from.

Theo later came back with another even more interesting update, demonstrating a method to implement an entire web site written in markdown and updated live through GitHub pages:

Here's a demo showing how I use Showdown on GitHub to do several fun things: Showdown demo for Jeremy

Adding the Showdown JavaScript functionality to convert the markdown to HTML in real time and hosting the entire site on GitHub pages enables anybody to easily edit, push, and have the generated site reflect the changes live.

Theo's demo can be driven to render either the default HTML index.html, or the other two pages defined in markdown, by passing their filenames as hash hypertext navigation arguments appended to the URL:

Pretty cool!

Thank you for the very clear and minimal example, Theo!

Beautiful Sad Funny Short Film on Robots

For something completely different, let a sad-looking robot melt your heart and ponder friendship, cooperation and greed in Jack Anderson's nine-minute short film Wire Cutters:

A chance encounter proves fateful for two robots mining on a desolate planet