Sha256: 5dd5e98958cbc4d4415fe18d05fbb1a587f2ce2d0a503c95f5e2d02cb0ac2c47
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module LiquidDiagrams module Renderers class MermaidRenderer < BasicRenderer OPTIONS = %w[ theme width height backgroundColor configFile cssFile scale ].freeze def render Rendering.render_with_tempfile(build_command, @content) do |input, output| "--input #{input} --output #{output}" end end def executable "mmdc --puppeteerConfigFile #{Utils.vendor_path('puppeteer.json')}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liquid-diagrams-0.4.0 | lib/liquid_diagrams/renderers/mermaid_renderer.rb |