Class: Nydp::Html::TextileToHtml

Inherits:
Object
  • Object
show all
Includes:
Builtin::Base, Singleton
Defined in:
lib/nydp/html.rb

Instance Method Summary collapse

Instance Method Details

#builtin_invoke(vm, args) ⇒ Object



81
82
83
84
85
86
# File 'lib/nydp/html.rb', line 81

def builtin_invoke vm, args
  src = args.car.to_s
  rc = RedCloth.new(src)
  rc.no_span_caps = true
  vm.push_arg Nydp::StringAtom.new rc.to_html
end