lib/asciidoctor/itu/converter.rb in metanorma-itu-1.0.15 vs lib/asciidoctor/itu/converter.rb in metanorma-itu-1.0.16

- old
+ new

@@ -135,9 +135,16 @@ def i18n_init(lang, script) super end + def metadata_keywords(node, xml) + return unless node.attr("keywords") + node.attr("keywords").split(/,[ ]*/).sort.each_with_index do |kw, i| + xml.keyword (i == 0 ? kw.capitalize : kw) + end + end + def html_extract_attributes(node) super.merge(hierarchical_assets: node.attr("hierarchical-object-numbering")) end def doc_extract_attributes(node)