Sha256: 260fcf4b7d4d48ad789fa07669bf71be89b0e9975e5423d7b8011773315ef930

Contents?: true

Size: 419 Bytes

Versions: 16

Compression:

Stored size: 419 Bytes

Contents

module Lookbook
  module OutputHelper
    def markdown(text = nil, &block)
      MarkdownRenderer.call(block ? capture(&block) : text, Lookbook.config.markdown_options)
    end

    def highlight(*args, **opts)
      CodeHighlighter.call(*args, **opts)
    end

    def beautify(*args, **opts)
      CodeBeautifier.call(*args, **opts)
    end

    def pretty_json(obj)
      JSON.pretty_generate(obj)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/helpers/lookbook/output_helper.rb
lookbook-1.5.4 app/helpers/lookbook/output_helper.rb
lookbook-1.5.3 app/helpers/lookbook/output_helper.rb
lookbook-1.5.2 app/helpers/lookbook/output_helper.rb
lookbook-1.5.1 app/helpers/lookbook/output_helper.rb
lookbook-1.5.0 app/helpers/lookbook/output_helper.rb
lookbook-1.4.5 app/helpers/lookbook/output_helper.rb
lookbook-1.4.4 app/helpers/lookbook/output_helper.rb
lookbook-1.4.3 app/helpers/lookbook/output_helper.rb
lookbook-1.4.2 app/helpers/lookbook/output_helper.rb
lookbook-1.4.1 app/helpers/lookbook/output_helper.rb
lookbook-1.4.0 app/helpers/lookbook/output_helper.rb
lookbook-1.3.4 app/helpers/lookbook/output_helper.rb
lookbook-1.3.3 app/helpers/lookbook/output_helper.rb
lookbook-1.3.1 app/helpers/lookbook/output_helper.rb
lookbook-1.3.0 app/helpers/lookbook/output_helper.rb