Class | Tilt::RDiscountTemplate |
In: |
lib/tilt.rb
|
Parent: | Template |
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.
# File lib/tilt.rb, line 750 750: def evaluate(scope, locals, &block) 751: @output ||= @engine.to_html 752: end
# File lib/tilt.rb, line 736 736: def flags 737: [:smart, :filter_html].select { |flag| options[flag] } 738: end