Sha256: 5a07dff69dd3959e0391796e3aeef61bfb4f342c6d28d007143ce1094174c232

Contents?: true

Size: 277 Bytes

Versions: 24

Compression:

Stored size: 277 Bytes

Contents

module HoboFields

  class MarkdownString < RawMarkdownString
    include SanitizeHtml

    HoboFields.register_type(:markdown, self)
    
    def to_html(xmldoctype = true)
      blank? ? "" : HoboFields::SanitizeHtml.sanitize(BlueCloth.new(self).to_html)
    end

  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hobofields-1.1.0 lib/hobo_fields/markdown_string.rb
hobofields-1.0.3 lib/hobo_fields/markdown_string.rb
hobofields-1.1.0.pre4 lib/hobo_fields/markdown_string.rb
hobofields-1.1.0.pre3 lib/hobo_fields/markdown_string.rb
hobofields-1.1.0.pre2 lib/hobo_fields/markdown_string.rb
hobofields-1.1.0.pre0 lib/hobo_fields/markdown_string.rb
hobofields-1.0.2 lib/hobo_fields/markdown_string.rb
hobofields-1.0.1 lib/hobo_fields/markdown_string.rb
hobofields-1.0.0 lib/hobo_fields/markdown_string.rb
hobofields-0.9.106 lib/hobo_fields/markdown_string.rb
hobofields-0.9.105 lib/hobo_fields/markdown_string.rb
hobofields-0.9.104 lib/hobo_fields/markdown_string.rb
hobofields-0.9.103 lib/hobo_fields/markdown_string.rb
hobofields-0.9.102 lib/hobo_fields/markdown_string.rb
hobofields-0.9.101 lib/hobo_fields/markdown_string.rb
hobofields-0.9.100 lib/hobo_fields/markdown_string.rb
hobofields-0.9.0 lib/hobo_fields/markdown_string.rb
hobofields-0.8.10 lib/hobo_fields/markdown_string.rb
hobofields-0.8.9 lib/hobo_fields/markdown_string.rb
hobofields-0.8.8 lib/hobo_fields/markdown_string.rb