Sha256: ead7450dcfa603d03a9730e12f9812b51cfb8d685dba473f49fb31f2d2f63fec

Contents?: true

Size: 551 Bytes

Versions: 4

Compression:

Stored size: 551 Bytes

Contents

require 'trac-wiki/parser'
require 'trac-wiki/tree'
require 'trac-wiki/version'
require 'trac-wiki/env'

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

4 entries across 4 versions & 1 rubygems

Version Path
trac-wiki-0.2.24 lib/trac-wiki.rb
trac-wiki-0.2.23 lib/trac-wiki.rb
trac-wiki-0.2.21 lib/trac-wiki.rb
trac-wiki-0.2.20 lib/trac-wiki.rb