SmartyPants: Preserve single `backticks` in HTML #201

Merged
merged 1 commit into from Mar 28, 2013

Conversation

Projects
None yet
3 participants
Contributor

mmorearty commented Feb 15, 2013

When SmartyPants is processing HTML (yes HTML, not Markdown), single
backticks should be left intact. Previously they were being deleted.

@mmorearty mmorearty SmartyPants: Preserve single `backticks` in HTML
When SmartyPants is processing HTML (yes HTML, not Markdown), single
`backticks` should be left intact.  Previously they were being deleted.
7e1a3e8

I'm facing this problem and would love for it to be fixed:

Redcarpet::Render::SmartyPants.render("# foo `code code` bar")
  # => "# foo code code bar" 

Desired output is

"# foo `code code` bar"

As a temporary workaround:

text.gsub!('`', '\\\\`')
Redcarpet::Render::SmartyPants.render(text)

aprescott referenced this pull request in aprescott/serif Feb 17, 2013

Merged

Add a smarty filter for smartypants processing #28

@robin850 robin850 added a commit that referenced this pull request Mar 28, 2013

@robin850 robin850 Merge pull request #201 from mmorearty/patch-single-backticks
SmartyPants: Preserve single `backticks` in HTML
f445e7e

@robin850 robin850 merged commit f445e7e into vmg:master Mar 28, 2013

Collaborator

robin850 commented Mar 28, 2013

Thanks for your contribution @mmorearty!

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