188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
# File 'lib/asciidoctor/standoc/macros.rb', line 188
def process(parent, reader, attrs)
if PlantUMLBlockMacroBackend.plantuml_installed?
filename = PlantUMLBlockMacroBackend.generate_file parent, reader
through_attrs = PlantUMLBlockMacroBackend.generate_attrs attrs
through_attrs["target"] = filename
create_image_block parent, through_attrs
else
warn "PlantUML not installed"
attrs["language"] = "plantuml"
create_listing_block parent, reader.source,
attrs.reject { |k, v| k == 1 }
end
end
|