class Tilt::RDiscountTemplate

to enable those flags on the underlying RDiscount object.
locals. The :smart and :filter_html options may be set true
RDiscount is a simple text filter. It does not support scope or
Discount Markdown implementation. See:

def evaluate(scope, locals, &block)

def evaluate(scope, locals, &block)
  @output ||= @engine.to_html
end

def flags

def flags
  [:smart, :filter_html].select { |flag| options[flag] }
end

def initialize_engine

def initialize_engine
  return if defined? ::RDiscount
  require_template_library 'rdiscount'
end

def prepare

def prepare
  @engine = RDiscount.new(data, *flags)
  @output = nil
end