Sha256: 7ab5b217bfe33f45f22c128992170ba571ca6d510dab1b2eac88b26362937c3d
Contents?: true
Size: 819 Bytes
Versions: 25
Compression:
Stored size: 819 Bytes
Contents
module TogoStanza::Stanza module Markdown class << self def render(source) INSTANCE.render(source) end end class Renderer < Redcarpet::Render::HTML def table(header, body) <<-HTML.strip_heredoc <table class="table"> #{header} #{body} </table> HTML end end RENDERER = Renderer.new( hard_wrap: true, safe_links_only: true, with_toc_data: true ) INSTANCE = Redcarpet::Markdown.new(RENDERER, autolink: true, fenced_code_blocks: true, lax_spacing: true, no_intra_emphasis: true, space_after_headers: true, strikethrough: true, superscript: false, tables: true ) end end
Version data entries
25 entries across 25 versions & 1 rubygems