Sha256: 68cb9fd4454788b7f4335062ea1790ef221bccc5343e32604c14fec9d885a816

Contents?: true

Size: 266 Bytes

Versions: 38

Compression:

Stored size: 266 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.html_safe
      end

    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
hobo_fields-1.3.0.RC2 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.RC1 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.RC lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre31 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre29 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre28 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre27 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre26 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre25 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre24 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre23 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre22 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre21 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre20 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre19 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre18 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre16 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.pre15 lib/hobo_fields/types/raw_markdown_string.rb