Sha256: 46f7ca9665f76e111b6997fca79799d48c00e9656a4ba2b721eaca9d96be7209

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

require 'trac-wiki/parser'
require 'trac-wiki/tree'
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
  def self.parser(text, options = {})
    Parser.new(text, options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trac-wiki-0.2.16 lib/trac-wiki.rb