holderdeord/hdo-site

View on GitHub
lib/hdo/utils/markdown.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Hdo
  module Utils
    module Markdown
      module_function

      def render(text)
        @markdown ||= Redcarpet::Markdown.new(Redcarpet::Render::HTML)
        @markdown.render(text)
      end

    end
  end
end