rmu/puzzlenode — pull request #57 by gjp (2011-12-04 18:18:12+00:00)
Title: Add preview for all markdown enabled textareas

This is a port of the markdown preview code used on university-web. Submitting for review & feedback.

Notable differences:

* Tabs stylesheet converted from css to sass & modified for puzzlenode
* preview.js modifed to handle multiple preview instances on the same page without duplicating IDs. The original relied on named anchors having the exact same syntax as a jQuery ID selector e.g. `` -> `$("#preview")`. I converted these to classes. Not quite as slick but it works.
* Custom showdown.js - I modified a regexp in one of the WMD forks of showdown to fix fenced code blocks and then minified it. A fenced block starts and ends with three or more backticks, optionally followed by a language name (a syntax highlighting hook, currently unused).

I also moved the Puzzlenode 'fun' functions to their own file. :) The javascript might need some namespace cleanup to finalize this merge, but I don't have a sure idea of where to go with that.