Method: IsoDoc::Function::Blocks#image_parse
- Defined in:
- lib/isodoc/function/blocks.rb
#image_parse(node, out, caption) ⇒ Object
270 271 272 273 274 275 276 277 278 |
# File 'lib/isodoc/function/blocks.rb', line 270 def image_parse(node, out, caption) attrs = { src: node["src"], height: node["height"] || "auto", width: node["width"] || "auto", title: node["title"], alt: node["alt"] } out.img **attr_code(attrs) image_title_parse(out, caption) end |