lib/metadown.rb
# The render method is a convenient factory. If we give it text, it
# delegates to the classic markdown renderer, otherwise, we can inject
# one of our own.
The render method is a convenient factory. If we give it text, it
delegates to the classic markdown renderer, otherwise, we can inject
one of our own.
The render method is a convenient factory . If we give it text it delegates to the classic markdown renderer otherwise we can inject one of our own .
def render(text, renderer=nil)
    return redcarpet_render(text) if renderer.nil?
    metadata = MetadataParser.new(text).parse
    Data.new(metadata, renderer.render(text))
  end
def render ( text , renderer = nil ) return redcarpet_render ( text ) if renderer . nil? metadata = MetadataParser . new ( text ) . parse Data . new ( metadata , renderer . render ( text ) ) end
The render method is a convenient factory.
The render method is a convenient factory .
text
renderer