Bugfixes and Redcarpet support

Hi,

@chrisbulmer has made a few bugfixes, and I've added Redcarpet support.

Cheers
Dave