Sha256: edf897cb21d982bea127072d07212fccc1af6f37ed313f76e5d83ce896e95307

Contents?: true

Size: 268 Bytes

Versions: 3

Compression:

Stored size: 268 Bytes

Contents

module Account::MarkdownHelper
  def markdown(string)
    Commonmarker.to_html(string, options: {
      extensions: {header_ids: true},
      plugins: {syntax_highlighter: {theme: "InspiredGitHub"}},
      render: {width: 120, unsafe: true}
    }).html_safe
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bullet_train-1.6.28 app/helpers/account/markdown_helper.rb
bullet_train-1.6.27 app/helpers/account/markdown_helper.rb
bullet_train-1.6.26 app/helpers/account/markdown_helper.rb