app/components/lookbook/code/component.html.erb in lookbook-1.2.1 vs app/components/lookbook/code/component.html.erb in lookbook-1.3.0
- old
+ new
@@ -4,7 +4,7 @@
"numbered": numbered?,
"focussed": focussed?,
"h-full": full_height?
}
] do %>
- <%= Lookbook::CodeFormatter.highlight(source, **@highlight_opts) %>
+ <%= Lookbook::CodeHighlighter.call(source, **@highlight_opts) %>
<% end %>
\ No newline at end of file