vigetlabs/acts_as_markup

View on GitHub
lib/acts_as_markup/exts/rdiscount.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'rdiscount'

class RDiscount
  include Stringlike
  
  # Used to get the original Markdown text.
  def to_s
    self.text
  end
  
  # used to be compatable with Rails/ActiveSupport
  def blank?
    self.text.blank?
  end
end