Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartypants fails with multiple pairs of single quotes #549

Closed
granth opened this issue Mar 4, 2016 · 0 comments
Closed

smartypants fails with multiple pairs of single quotes #549

granth opened this issue Mar 4, 2016 · 0 comments

Comments

@granth
Copy link

granth commented Mar 4, 2016

Recarpet::Render::SmartyPants doesn't convert the opening quotation mark for the second and following pairs of single quotes.

Redcarpet::Render::SmartyPants.render %(<p>'this' and 'that' and 'foo'</p>)
# => "<p>&lsquo;this&rsquo; and 'that&rsquo; and 'foo&rsquo;</p>"

I looked at html_smartypants.c but my C is extremely rusty and I didn't get anywhere.

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

No branches or pull requests

2 participants