Sha256: ba3aa09b7ab276e601cb0fb6e251b964ea564dc28a8fe744a7ceb266106beb54

Contents?: true

Size: 260 Bytes

Versions: 6

Compression:

Stored size: 260 Bytes

Contents

#
# TEXTILE
#
Comatose::TextFilters.define :textile, "Textile" do
  require 'redcloth'
  
  def render_text(text)
    RedCloth.new(text).to_html(:refs_markdown, :textile, :markdown)
  end
  
  def create_link(title, url)
    %Q|"#{title}":#{url}|
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
comatose-rubyisbeautiful-3.0.5 lib/text_filters/textile.rb
comatose-rubyisbeautiful-3.0.4 lib/text_filters/textile.rb
comatose-rubyisbeautiful-3.0.3 lib/text_filters/textile.rb
comatose-rubyisbeautiful-3.0.2 lib/text_filters/textile.rb
comatose-rubyisbeautiful-3.0.1 lib/text_filters/textile.rb
comatose-rubyisbeautiful-3.0.0 lib/text_filters/textile.rb