Sha256: e931e6d438d86620827b56b77c5ea3bb8a71c9186066a584ffd01e81e80b2b5e

Contents?: true

Size: 187 Bytes

Versions: 5

Compression:

Stored size: 187 Bytes

Contents

class Hobo::MarkdownString < String
  
  COLUMN_TYPE = :text
  
  def to_html
    blank? ? "" : BlueCloth.new(self).to_html
  end

end

Hobo.field_types[:markdown] = Hobo::MarkdownString

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hobo-0.6.3 hobo_files/plugin/lib/hobo/markdown_string.rb
hobo-0.6.4 hobo_files/plugin/lib/hobo/markdown_string.rb
hobo-0.7.0 hobo_files/plugin/lib/hobo/markdown_string.rb
hobo-0.7.1 hobo_files/plugin/lib/hobo/markdown_string.rb
hobo-0.7.2 hobo_files/plugin/lib/hobo/markdown_string.rb