Module Redcarpet::Render::SmartyPants
In: lib/redcarpet.rb

SmartyPants Mixin module

Implements SmartyPants.postprocess, which performs smartypants replacements on the HTML file, once it has been fully rendered.

To add SmartyPants postprocessing to your custom renderers, just mixin the module `include SmartyPants`

You can also use this as a standalone SmartyPants implementation.

Example:

  # Mixin
  class CoolRenderer < HTML
    include SmartyPants
    # more code here
  end

  # Standalone
  Redcarpet::Render::SmartyPants.render("you're")

Methods

render  

Public Class methods

[Validate]