Sha256: fff1008aac4f8038c42786fbf32121bb65aa47651fd8be0bb364ef0f90d029e0
Contents?: true
Size: 568 Bytes
Versions: 16
Compression:
Stored size: 568 Bytes
Contents
module Asciidoctor module M3AAWG 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 @log.add("Document Attributes", nil, "#{stage} is not a recognised status") end end end end
Version data entries
16 entries across 13 versions & 2 rubygems