Sha256: bfd2a0da489d9a22e4ffb5358ad167f7afa2b360e65f8d3b9329739985eb73f9

Contents?: true

Size: 256 Bytes

Versions: 5

Compression:

Stored size: 256 Bytes

Contents

module HoboFields
  module Types
    class RawMarkdownString < HoboFields::Types::Text

      HoboFields.register_type(:raw_markdown, self)

      def to_html(xmldoctype = true)
        blank? ? "" : Markdown.new(self).to_html
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hobo_fields-1.3.0.pre14 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre13 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre12 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre11 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre10 lib/hobo_fields/types/raw_markdown_string.rb