ddfreyne/nanoc — comment on commit 5efed25ad636a2fa67679049134a19cf3411d68a
File: test/filters/test_redcarpet.rb line 35
By telemachus:

Just fyi, the `:smart` option is currently a bit broken in Redcarpet2. See these issues:

+ https://github.com/tanoku/redcarpet/issues/57
+ https://github.com/tanoku/redcarpet/issues/66
+ https://github.com/tanoku/redcarpet/issues/53

I'm currently using [a suggestion from one of the issues threads](https://github.com/tanoku/redcarpet/issues/57#issuecomment-2488442), but it's a temporary workaround:

markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
html = markdown.render content
html.gsub!("'", "'")
html = Redcarpet::Render::SmartyPants.rende