Module: Redcarpet::Render::SmartyPants

### Home Classes Methods

### In Files

- lib/redcarpet.rb

### Methods

- ::render

### Class/Module Index

Quicksearch

- Redcarpet
- Redcarpet::Markdown
- Redcarpet::Render
- Redcarpet::Render::ManPage
- Redcarpet::Render::Safe
- Redcarpet::Render::SmartyHTML
- Redcarpet::Render::SmartyPants
- Redcarpet::Render::StripDown
- Redcarpet::Render::XHTML
- Object
- RedcarpetCompat

No matching classes.

# Redcarpet::Render::SmartyPants

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")

### Public Class Methods

render(text) click to toggle source

    # File lib/redcarpet.rb, line 87
    def self.render(text)
      postprocess text
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.