Sha256: 06e51be9a106523595dd0def08457d2bec57055c0774ef7edfdd0f99c5e1d51a

Contents?: true

Size: 768 Bytes

Versions: 6

Compression:

Stored size: 768 Bytes

Contents

require "asciidoctor/standoc/converter"
require 'asciidoctor/generic/converter'

module Asciidoctor
  module VG
    # A {Converter} implementation that generates RSD output, and a document
    # schema encapsulation of the document for validation
    #
    class Converter < Asciidoctor::Generic::Converter
      register_for "vg"

      def configuration
        Metanorma::VG.configuration
      end

      def html_converter(node)
        IsoDoc::VG::HtmlConvert.new(html_extract_attributes(node))
      end

      def presentation_xml_converter(node)
        IsoDoc::VG::PresentationXMLConvert.new(html_extract_attributes(node))
      end

      def doc_converter(node)
        IsoDoc::VG::WordConvert.new(doc_extract_attributes(node))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
metanorma-vg-1.2.1 lib/asciidoctor/vg/converter.rb
metanorma-vg-1.2.0 lib/asciidoctor/vg/converter.rb
metanorma-vg-1.1.3 lib/asciidoctor/vg/converter.rb
metanorma-vg-1.1.2 lib/asciidoctor/vg/converter.rb
metanorma-vg-1.1.1 lib/asciidoctor/vg/converter.rb
metanorma-vg-1.1.0 lib/asciidoctor/vg/converter.rb