Method: IsoDoc::PresentationXMLConvert#custom_css

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

#custom_css(docxml) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/isodoc/presentation_function/sourcecode.rb', line 11

def custom_css(docxml)
  ret = ""
  @sourcehighlighter and ret += rouge_css_location
  a = docxml.at(ns("//metanorma-extension/" \
                   "clause[title = 'user-css']/sourcecode/body")) and
    ret += "\n#{to_xml(a.children)}"
  ret
end