app/helpers/lookbook/output_helper.rb in lookbook-1.2.1 vs app/helpers/lookbook/output_helper.rb in lookbook-1.3.0
- old
+ new
@@ -1,16 +1,16 @@
module Lookbook
module OutputHelper
def markdown(text = nil, &block)
- Lookbook::Markdown.render(block ? capture(&block) : text)
+ MarkdownRenderer.call(block ? capture(&block) : text, Lookbook.config.markdown_options)
end
- def highlight(source, **opts)
- Lookbook::CodeFormatter.highlight(source, **opts)
+ def highlight(*args, **opts)
+ CodeHighlighter.call(*args, **opts)
end
- def beautify(source, **opts)
- Lookbook::CodeFormatter.beautify(source, **opts)
+ def beautify(*args, **opts)
+ CodeBeautifier.call(*args, **opts)
end
def pretty_json(obj)
JSON.pretty_generate(obj)
end