84
85
86
87
88
89
90
91
92
93
94
95
|
# File 'lib/asciidoctor/standoc/macros.rb', line 84
def process(parent, reader, attrs)
if PlantUMLBlockMacroBackend.plantuml_installed?
filename = PlantUMLBlockMacroBackend.generate_file parent, reader
through_attrs = PlantUMLBlockMacroBackend.generate_attrs attrs
through_attrs["target"] = "plantuml/#{filename}.png"
create_image_block parent, through_attrs
else
warn "PlantUML not installed"
create_listing_block parent, reader.source, attrs.reject { |k, v| k == 1 }
end
end
|