Method: IsoDoc::Function::Blocks#figure_parse
- Defined in:
- lib/isodoc/function/blocks.rb
#figure_parse(node, out) ⇒ Object
| 61 62 63 64 65 66 67 68 69 70 71 72 | # File 'lib/isodoc/function/blocks.rb', line 61 def figure_parse(node, out) @in_figure = true name = node.at(ns("./name")) out.div **attr_code(id: node["id"], class: "figure") do |div| node.children.each do |n| figure_key(out) if n.name == "dl" parse(n, div) unless n.name == "name" end figure_name_parse(node, div, name) end @in_figure = false end |