Sha256: 1f3748a894ed825211c970451ca62fc864ab239c3526ce407173075b40dae71d

Contents?: true

Size: 290 Bytes

Versions: 25

Compression:

Stored size: 290 Bytes

Contents

require "makeup"

module Recruiter
  module MarkdownHelper
    def to_markdown(text)
      sanitize(renderer.render("file.md", text).html_safe)
    end

    def renderer
      @md_renderer ||= Makeup::Markup.new(
        highlighter: Makeup::SyntaxHighlighter.new
      )
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
recruiter-1.1.18 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.17 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.16 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.15 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.14 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.12 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.11 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.10 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.9 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.8 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.7 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.6 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.5 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.4 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.3 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.2 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.1 app/helpers/recruiter/markdown_helper.rb
recruiter-1.1.0 app/helpers/recruiter/markdown_helper.rb
recruiter-1.0.0 app/helpers/recruiter/markdown_helper.rb
recruiter-0.1.5 app/helpers/recruiter/markdown_helper.rb