class Markdown::Wrapper
Public Class Methods
new( lib, mn, content, options={} )
click to toggle source
# File lib/markdown/wrapper.rb, line 30 def initialize( lib, mn, content, options={} ) @lib = lib @mn = mn @content = content @options = options end
Public Instance Methods
to_html()
click to toggle source
# File lib/markdown/wrapper.rb, line 37 def to_html # call markdown filter; turn markdown lib name into method_name (mn) # eg. rpeg-markdown => rpeg_markdown_to_html send( @mn, @content, @options ) # call 1st configured markdown engine e.g. kramdown_to_html( content ) end