By John Gruber
Upgraded — Get a new MacBook every two years. From $36.06/month with AppleCare+ included.
Chris Pepper:
Since I couldn’t find an Apache handler (plug-in) or a CGI for Markdown, I wrote a very simple wrapper for Gruber’s Markdown.pl. Conceptually, my wrapper spits out an HTML header, uses Markdown.pl to render the requested page as (X)HTML, and then appends an (X)HTML footer. The reality is slightly more complicated, due to the vagaries of figuring out the document’s title, and conditionally inserting it back into the output as an
<H1>
tag. Even so, the whole thing is under 60 lines, mostly whitespace and comments.
Very simple way to serve .text files as HTML.
★ Thursday, 24 May 2007