lib/jekyll-diagrams/vega.rb in jekyll-diagrams-0.9.2 vs lib/jekyll-diagrams/vega.rb in jekyll-diagrams-0.9.3

- old
+ new

@@ -4,10 +4,12 @@ module Diagrams class VegaBlock < Block CONFIGURATIONS = %w[scale].freeze def render_svg(code, config) - code = render_with_stdin_stdout('vl2vg', code) if block_name == 'vegalite' + if block_name == 'vegalite' + code = render_with_stdin_stdout('vl2vg', code) + end command = build_command(config) render_with_stdin_stdout(command, code) end