Method: IsoDoc::HtmlFunction::Html#term_header
- Defined in:
- lib/isodoc/html_function/postprocess.rb
#term_header(docxml) ⇒ Object
110 111 112 113 114 115 116 117 |
# File 'lib/isodoc/html_function/postprocess.rb', line 110 def term_header(docxml) %w(h1 h2 h3 h4 h5 h6 h7 h8).each do |h| docxml.xpath("//p[@class = 'TermNum'][../#{h}]").each do |p| p.name = "h#{h[1].to_i + 1}" end end docxml end |