Method: IsoDoc::HtmlFunction::Html#heading_anchor
- Defined in:
- lib/isodoc/html_function/postprocess.rb
#heading_anchor(hdr, id) ⇒ Object
46 47 48 49 50 |
# File 'lib/isodoc/html_function/postprocess.rb', line 46 def heading_anchor(hdr, id) hdr.children = <<~HTML.strip <a class='anchor' href='##{id}'/><a class='header' href='##{id}'>#{hdr.children.to_xml}</a> HTML end |