class Jekyll::Diagrams::PlantUMLRenderer
Constants
- XML_REGEX
Public Instance Methods
build_command(_config)
click to toggle source
# File lib/jekyll-diagrams/plantuml/renderer.rb, line 15 def build_command(_config) jar = Utils.vendor_path('plantuml.1.2020.1.jar') options = +Utils.run_jar(jar) options << ' -tsvg -pipe' end
render_svg(code, config)
click to toggle source
# File lib/jekyll-diagrams/plantuml/renderer.rb, line 8 def render_svg(code, config) command = build_command(config) svg = render_with_stdin_stdout(command, code) svg.sub!(XML_REGEX, '') end