Sha256: c5c146a317b6e161879abb86921d7d446f180a2cbcc85d6c2f764d89d38403e8

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

require 'trac_wiki/parser'
require 'trac_wiki/version'

module TracWiki
  # Convert the argument in Trac format to HTML and return the
  # result. Example:
  #
  # TracWiki.creolize("**Hello ''World''**")
  # #=> "<p><strong>Hello <em>World</em></strong></p>"
  #
  # This is an alias for calling Creole#parse:
  # TracWiki.new(text).to_html
  def self.render(text, options = {})
    Parser.new(text, options).to_html
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trac-wiki-0.0.3 lib/trac_wiki.rb
trac-wiki-0.0.2 lib/trac_wiki.rb
trac-wiki-0.0.1 lib/trac_wiki.rb