Sha256: 4bc582c4ddacc562a1c6dad6e6582f78d4e9888dcf7fdd3d63c7907c7f800fdd

Contents?: true

Size: 387 Bytes

Versions: 25

Compression:

Stored size: 387 Bytes

Contents

module Lookbook
  module OutputHelper
    def markdown(text = nil, &block)
      Lookbook::Markdown.render(block ? capture(&block) : text)
    end

    def highlight(source, language, opts = {})
      Lookbook::CodeFormatter.highlight(source, language, opts)
    end

    def beautify(source, language = "html")
      Lookbook::CodeFormatter.beautify(source, language)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/helpers/lookbook/output_helper.rb
lookbook-0.9.7 app/helpers/lookbook/output_helper.rb
lookbook-0.9.6 app/helpers/lookbook/output_helper.rb
lookbook-0.9.5 app/helpers/lookbook/output_helper.rb
lookbook-0.9.4 app/helpers/lookbook/output_helper.rb
lookbook-0.9.3 app/helpers/lookbook/output_helper.rb
lookbook-0.9.2 app/helpers/lookbook/output_helper.rb
lookbook-0.9.1 app/helpers/lookbook/output_helper.rb
lookbook-0.9.0 app/helpers/lookbook/output_helper.rb
lookbook-0.8.3 app/helpers/lookbook/output_helper.rb
lookbook-0.8.2 app/helpers/lookbook/output_helper.rb
lookbook-0.8.1 app/helpers/lookbook/output_helper.rb
lookbook-0.8.0 app/helpers/lookbook/output_helper.rb
lookbook-0.8.0.beta.0 app/helpers/lookbook/output_helper.rb
lookbook-0.7.4 app/helpers/lookbook/output_helper.rb
lookbook-0.7.3 app/helpers/lookbook/output_helper.rb
lookbook-0.7.2 app/helpers/lookbook/output_helper.rb
lookbook-0.7.2.beta.5 app/helpers/lookbook/output_helper.rb
lookbook-0.7.2.beta.4 app/helpers/lookbook/output_helper.rb
lookbook-0.7.2.beta.3 app/helpers/lookbook/output_helper.rb