Sha256: 5453474471dabacfa7e3b44d2852282caeb1486e8c4d8220421f63eb434d0b22
Contents?: true
Size: 556 Bytes
Versions: 14
Compression:
Stored size: 556 Bytes
Contents
module Asciidoctor module Csand class Converter < Standoc::Converter def content_validate(doc) super bibdata_validate(doc.root) end def bibdata_validate(doc) stage_validate(doc) end def stage_validate(xmldoc) stage = xmldoc&.at("//bibdata/status/stage")&.text %w(proposal working-draft committee-draft draft-standard final-draft published withdrawn).include? stage or warn "Document Attributes: #{stage} is not a recognised status" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems