Sha256: 361eb8155d9b17a0bd8552ecbc669e4ca17712eb543f8840d895a109b079abd8
Contents?: true
Size: 428 Bytes
Versions: 15
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
15 entries across 15 versions & 1 rubygems