Sha256: 9172c11cac427bb8add8d9fd1bb45bdee2614e27090ab0b31754b5fb9a99cd99
Contents?: true
Size: 361 Bytes
Versions: 15
Compression:
Stored size: 361 Bytes
Contents
module Account::MarkdownHelper def markdown(string) if defined?(Commonmarker.to_html) Commonmarker.to_html(string, options: { plugins: {syntax_highlighter: {theme: "InspiredGitHub"}}, render: {width: 120, unsafe: true} }).html_safe else CommonMarker.render_html(string, :UNSAFE, [:table]).html_safe end end end
Version data entries
15 entries across 15 versions & 1 rubygems