Sha256: dc80985b7c86085fe7123cda7cfc2fa02131ee30cc15bbe7c97a7ff3d3a707b6
Contents?: true
Size: 537 Bytes
Versions: 33
Compression:
Stored size: 537 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.render("**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(options).to_html(text) end def self.parser(options = {}) Parser.new(options) end end
Version data entries
33 entries across 33 versions & 1 rubygems