Method: IsoDoc::WordFunction::Body#image_parse
- Defined in:
- lib/isodoc/word_function/inline.rb
#image_parse(node, out, caption) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/isodoc/word_function/inline.rb', line 44 def image_parse(node, out, caption) if emf = node.at(ns("./emf")) node["src"] = emf["src"] node["height"] ||= emf["height"] node["width"] ||= emf["width"] 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 |