Python Markdown Extension for Inline Gist

As discussed in this thread on the Nikola forum, I'd wanted a way add a custom inline "gist" directive to Nikola which I could use in my markdown posts to include the full contents of the gist in a <noscript> tag. This makes gist contents available in the site RSS feed and when viewing the site with Javascript disabled. Here's a gist (of course) with the Python Markdown extension that makes this possible:

I'll be sending a push request shortly to get this integrated into Nikola. Thanks to Roberto Alsina for already gist support to reStructuredText posts in Nikola.

Update: Pull request accepted!

Contents © 2010-2015 Michael Rabbitt - Powered by Nikola