Method: IsoDoc::WordFunction::Body#image_parse
- Defined in:
- lib/isodoc/word_function/body.rb
#image_parse(node, out, caption) ⇒ Object
211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/isodoc/word_function/body.rb', line 211 def image_parse(node, out, caption) attrs = { src: imgsrc(node["src"]), height: node["height"], width: node["width"] } if node["height"] == "auto" || node["width"] == "auto" attrs[:height] = nil attrs[:width] = nil end out.img **attr_code(attrs) image_title_parse(out, caption) end |