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.3 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-2.0.0.pre7 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-2.0.0.pre6 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-2.0.0.pre5 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-2.0.0.pre4 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.2 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.1 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-2.0.0.pre3 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-2.0.0.pre2 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-2.0.0.pre1 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.4.0.pre8 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.4.0.pre7 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.4.0.pre6 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.4.0.pre5 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.4.0.pre4 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.4.0.pre3 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.4.0.pre2 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.RC4 lib/hobo_fields/types/raw_markdown_string.rb
hobo_fields-1.3.0.RC3 lib/hobo_fields/types/raw_markdown_string.rb