Method: IsoDoc::PresentationXMLConvert#concept1_style

Defined in:
lib/isodoc/presentation_function/concepts.rb

#concept1_style(node, opts) ⇒ Object



44
45
46
47
48
49
50
# File 'lib/isodoc/presentation_function/concepts.rb', line 44

def concept1_style(node, opts)
  r = node.at(ns(".//renderterm")) or return
  opts[:ital] == "true" and r.children = "<em>#{to_xml(r.children)}</em>"
  opts[:bold] == "true" and
    r.children = "<strong>#{to_xml(r.children)}</strong>"
  r.replace(r.children)
end