Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Redcarpet 2 Defaults to Redcarpet1 Compat mode. #119

Closed
tdreyno opened this Issue Dec 14, 2011 · 1 comment

Comments

Projects
None yet
3 participants

tdreyno commented Dec 14, 2011

The current code checks for the existence of the RedcarpetCompat class. If it is defined, then Tilt uses Redcarpet 1 Compatibility mode which disables Redcarpet's extensions.

The problem is, that class is always defined as it is created in the root redcarpet.rb. So Tilt always uses compatibility mode.

I was able to fix this in my code by forcibly removing the RedcarpetCompat class:

https://github.com/tdreyno/middleman/blob/bc93d842dc0ee8b06d75efe685f63ab815b466c3/lib/middleman/renderers/markdown.rb

pwim commented Aug 1, 2012

👍 spent about half an hour debugging this issue

@rtomayko rtomayko closed this in b9d3dbe Aug 5, 2012

@rtomayko rtomayko added a commit that referenced this issue Aug 5, 2012

@rtomayko rtomayko Merge pull request #122 from simulacre/bug-119_redcarpet_extensions
fixes #119: Redcarpet2 has precedence over Redcarpet1
0fd6ddb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment