class Tilt::RDiscountTemplate

Discount Markdown implementation. See: github.com/rtomayko/rdiscount

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

Constants

ALIAS
FLAGS

Public Instance Methods

allows_script?() click to toggle source
   # File lib/tilt/rdiscount.rb
34 def allows_script?
35   false
36 end
evaluate(scope, locals, &block) click to toggle source
   # File lib/tilt/rdiscount.rb
30 def evaluate(scope, locals, &block)
31   @output ||= @engine.to_html
32 end
flags() click to toggle source
   # File lib/tilt/rdiscount.rb
21 def flags
22   FLAGS.select { |flag| options[flag] }.map { |flag| ALIAS[flag] || flag }
23 end
prepare() click to toggle source
   # File lib/tilt/rdiscount.rb
25 def prepare
26   @engine = RDiscount.new(data, *flags)
27   @output = nil
28 end