lib/nelumba-mongodb/article.rb
def render_markdown
      return if self.markdown.nil?

      render_as = Redcarpet::Render::HTML
      engine = Redcarpet::Markdown.new(render_as, :autolink            => true,
                                                  :space_after_headers => true)
      self.content = engine.render(self.markdown)
    end
# Generates content field with the markdown field.
Generates content field with the markdown field.
Generates content field with the markdown field .
def render_markdown
      return if self.markdown.nil?
      render_as = Redcarpet::Render::HTML
      engine = Redcarpet::Markdown.new(render_as, :autolink            => true,
                                                  :space_after_headers => true)
      self.content = engine.render(self.markdown)
    end
def render_markdown return if self . markdown . nil? render_as = Redcarpet :: Render :: HTML engine = Redcarpet :: Markdown . new ( render_as , :autolink => true , :space_after_headers => true ) self . content = engine . render ( self . markdown ) end
Generates content field with the markdown field.
Generates content field with the markdown field .