Sha256: db523bfe969295b7096644cf686e34f49450a39958b8b9dc77556abd411ce123
Contents?: true
Size: 419 Bytes
Versions: 25
Compression:
Stored size: 419 Bytes
Contents
module Lookbook module OutputHelper def markdown(text = nil, &block) Lookbook::Markdown.render(block ? capture(&block) : text) end def highlight(source, **opts) Lookbook::CodeFormatter.highlight(source, **opts) end def beautify(source, **opts) Lookbook::CodeFormatter.beautify(source, **opts) end def pretty_json(obj) JSON.pretty_generate(obj) end end end
Version data entries
25 entries across 25 versions & 1 rubygems