Sha256: e1713987f2df91440c9247b320bf5b181343782e82d2483b097bf0810a731277
Contents?: true
Size: 581 Bytes
Versions: 18
Compression:
Stored size: 581 Bytes
Contents
module Asciidoctor module Csa 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
18 entries across 15 versions & 2 rubygems