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 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 prepare
def prepare @engine = RDiscount.new(data, *flags) @output = nil end