Sha256: 9faa40f4b9b2f13d6d4c6aac0c5c2f4709a32ae0169646f460fd501fd063883b
Contents?: true
Size: 826 Bytes
Versions: 1
Compression:
Stored size: 826 Bytes
Contents
require "metanorma/processor" module Metanorma module Rfc class ProcessorV3 < Metanorma::Processor def initialize @short = :rfc3 @input_format = :asciidoc @asciidoctor_backend = :rfc3 end def output_formats { xmlrfc: "v3.xml" } end def version "Asciidoctor::Rfc3 #{Asciidoctor::RFC::VERSION}" end def input_to_isodoc(file) Asciidoctor.convert( file, to_file: false, safe: :safe, backend: @asciidoctor_backend, header_footer: true ) end def output(isodoc_node, outname, format, options={}) case format when :xmlrfc File.open(outname, 'w') { |file| file << isodoc_node } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-rfc-0.9.1 | lib/metanorma/rfc/processor_v3.rb |