lib/repper/format/inline.rb in repper-1.0.0 vs lib/repper/format/inline.rb in repper-1.1.0

- old
+ new

@@ -1,7 +1,8 @@ module Repper module Format - Inline = ->(elements, theme) do - elements.map { |el| theme.colorize(el.text, el.type) }.join + # A format that only adds color but does not change structure. + Inline = ->(tokens, theme) do + tokens.map { |tok| theme.colorize(tok.text, tok.type) }.join end end end