Sha256: ae3639f0abd2ff2bb55da297a5fc98cf14504488e03d5245e42ef43c4b4304b7
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
require "active_support/all" require "redcarpet" require_relative "./govuk_markdown/version" require_relative "./govuk_markdown/renderer" module GovukMarkdown def self.render(markdown) renderer = GovukMarkdown::Renderer.new(with_toc_data: true) Redcarpet::Markdown.new(renderer, tables: true, no_intra_emphasis: true).render(markdown).strip end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govuk_markdown-0.3.0 | lib/govuk_markdown.rb |