Sha256: 2e2798e8307ea5a0621ba8b77d34a3cc2a0cdce38c6b54f893b8defb3f8430af

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

require 'creole/parser'
require 'creole/version'

module Creole
  # 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
  def self.creolize(text, options = {})
    Parser.new(text, options).to_html
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
creole-0.5.0 lib/creole.rb
creole-0.4.2 lib/creole.rb
creole-0.4.1 lib/creole.rb
creole-0.4.0 lib/creole.rb