lib/asciidoctor/generic/converter.rb in metanorma-generic-1.7.2 vs lib/asciidoctor/generic/converter.rb in metanorma-generic-1.7.3

- old
+ new

@@ -33,13 +33,14 @@ id.empty? and docid.remove or docid.children = id end def doctype(node) d = super - configuration.doctypes or return d == "article" ? "standard" : d + configuration.doctypes or return d == "article" ? + (configuration.default_doctype || "standard") : d type = configuration.default_doctype || - Array(configuration.doctypes).dig(0) || "standard" - unless Array(configuration.doctypes).include? d + configuration.doctypes.keys.dig(0) || "standard" + unless configuration.doctypes.keys.include? d @log.add("Document Attributes", nil, "#{d} is not a legal document type: reverting to '#{type}'") d = type end d