module Creole

Main Creole parser class. Call CreoleParser#parse to parse Creole formatted text.

This class is not reentrant. A separate instance is needed for each thread that needs to convert Creole to HTML.

Inherit this to provide custom handling of links. The overrideable methods are: make_local_link

Constants

VERSION

Public Class Methods

creolize(text, options = {}) click to toggle source

Convert the argument in Creole format to HTML and return the result. Example:

Creole.creolize("**Hello //World//**")
    #=> "<p><strong>Hello <em>World</em></strong></p>"

This is an alias for calling Creole#parse:

Creole.new(text).to_html
# File lib/creole.rb, line 13
def self.creolize(text, options = {})
  Parser.new(text, options).to_html
end