octopress / code-highlighter

Octopress's core pygments system for rendering code blocks.
MIT License
10 stars 5 forks source link

Reverse renderer selection #7

Open p91 opened 8 years ago

p91 commented 8 years ago

As of https://github.com/jekyll/jekyll/pull/3323 jekyll has a dependency on rouge. Hence, rouge is always used even if pygments is optionally installed. This patch reverse the loopup of the renderers (previously, first check for rouge, then pygments; now: first check fir pygments, then rouge) so pygments can be used if desired.