Method: IsoDoc::WordFunction::Body#image_parse
- Defined in:
- lib/isodoc/word_function/inline.rb
#image_parse(node, out, caption) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/isodoc/word_function/inline.rb', line 33 def image_parse(node, out, caption) if emf = node.at(ns("./emf")) node["src"] = emf["src"] node["mimetype"] = "image/x-emf" node.children.remove end attrs = { src: imgsrc(node), height: node["height"], alt: node["alt"], title: node["title"], width: node["width"] } out.img **attr_code(attrs) image_title_parse(out, caption) end |