Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
I've been using Kramdown for some time and love the extended syntax. However, the code blocks seem to be handled by CodeRay by default, but I heavily prefer the better supported Pygments.rb library (previously Albino) since it has much better syntax support (and CodeRay is on its way to abandonment I believe).
Is there already a good API hook/class to inherit from (similar to RedCarpet's renderer base class) so that I can use Pygments to render my code block whenever one is processed? I could hack around in a fork to use Pygments instead, but it would be nicer if this could be done with a simple render class or method overwrite.
Have a blessed day!
On 2012-10-24 12:39 -0700 nybblr wrote:
Derive a class from Kramdown::Converter::Html and override the