add redcarpet support #79

Merged
merged 1 commit into from Apr 26, 2011

Projects

None yet

2 participants

@rkh
Collaborator

No description provided.

@rtomayko rtomayko added a commit that referenced this pull request Apr 26, 2011
@rtomayko Merged pull request #79 from rkh/redcarpet.
add redcarpet support
9f4dd62
@rtomayko rtomayko merged commit 9f4dd62 into rtomayko:master Apr 26, 2011
@rtomayko rtomayko commented on the diff Apr 27, 2011
test/tilt_markdown_test.rb
@@ -66,8 +66,12 @@ module MarkdownTests
end
def test_smarty_pants_true
- html = nrender "Hello ``World'' -- This is --- a test ...", :smartypants => true
- assert_equal "<p>Hello “World” — This is —– a test …</p>", html
+ if self.class.template == Tilt::RedcarpetTemplate
+ warn "\nsmartypants not yet fully supported by redcarpet (#{__FILE__}:#{__LINE__})"
+ else
+ html = nrender "Hello ``World'' -- This is --- a test ...", :smartypants => true
+ assert_equal "<p>Hello “World” — This is —– a test …</p>", html
+ end
@rtomayko
rtomayko Apr 27, 2011

Trying to get @tanoku to fix this btw. I didn't realize that was valid smartypants to be honest. I thought it converted all double-quote pairs to smart quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment