Sha256: 45ed5ba8ec9656378706f8a281c38fa667c916fd79531129727bf95510021f22
Contents?: true
Size: 564 Bytes
Versions: 4
Compression:
Stored size: 564 Bytes
Contents
# encoding: utf-8 module Rango module Helpers # @since 0.0.1 def textile(text) require "redcloth" RedCloth.new(text).to_html end # @since 0.0.1 def markdown(text) require "bluecloth" end # @since 0.0.1 def maruku(text, options = Hash.new) require "maruku" end # @since 0.0.1 def syntax(text, options = Hash.new) require "syntax/convertors/html" convertor = Syntax::Convertors::HTML.for_syntax(options[:language] || "ruby") convertor.convert(text, false) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rango-0.1.0 | lib/rango/helpers/syntax.rb |
rango-0.0.6 | lib/rango/helpers/syntax.rb |
rango-0.1.pre | lib/rango/helpers/syntax.rb |
rango-0.0.4 | lib/rango/helpers/syntax.rb |