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 self.engine_initialized?

def self.engine_initialized?
  defined? ::RDiscount
end

def allows_script?

def allows_script?
  false
end

def evaluate(scope, locals, &block)

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

def flags

def flags
  FLAGS.select { |flag| options[flag] }.map { |flag| ALIAS[flag] || flag }
end

def initialize_engine

def initialize_engine
  require_template_library 'rdiscount'
end

def prepare

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