Sha256: d51ef45940bab1a7df7a9a05f6c907f09073e479693daa2c892c4c31587a3ac9

Contents?: true

Size: 1.53 KB

Versions: 7

Compression:

Stored size: 1.53 KB

Contents

require "asciidoctor"
require "asciidoctor/iso/version"
require "asciidoctor/iso/base"
require "asciidoctor/iso/front"
require "asciidoctor/iso/lists"
require "asciidoctor/iso/inline"
require "asciidoctor/iso/blocks"
require "asciidoctor/iso/section"
require "asciidoctor/iso/table"
require "asciidoctor/iso/validate"
require "asciidoctor/iso/utils"
require "asciidoctor/iso/cleanup"
require_relative "./macros.rb"

module Asciidoctor
  module ISO
    # A {Converter} implementation that generates ISO output, and a document
    # schema encapsulation of the document for validation
    class Converter
      include ::Asciidoctor::Converter
      include ::Asciidoctor::Writer

      include ::Asciidoctor::ISO::Base
      include ::Asciidoctor::ISO::Front
      include ::Asciidoctor::ISO::Lists
      include ::Asciidoctor::ISO::Inline
      include ::Asciidoctor::ISO::Blocks
      include ::Asciidoctor::ISO::Section
      include ::Asciidoctor::ISO::Table
      include ::Asciidoctor::ISO::Utils
      include ::Asciidoctor::ISO::Cleanup
      include ::Asciidoctor::ISO::Validate

      register_for "iso"

      $xreftext = {}

      def initialize(backend, opts)
        super
        basebackend "html"
        outfilesuffix ".xml"
      end

      alias_method :embedded, :content
      alias_method :verse, :quote
      alias_method :audio, :skip
      alias_method :video, :skip
      alias_method :inline_button, :skip
      alias_method :inline_kbd, :skip
      alias_method :inline_menu, :skip
      alias_method :inline_image, :skip
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
asciidoctor-iso-0.7.7 lib/asciidoctor/iso/converter.rb
asciidoctor-iso-0.7.6 lib/asciidoctor/iso/converter.rb
asciidoctor-iso-0.7.5 lib/asciidoctor/iso/converter.rb
asciidoctor-iso-0.7.4 lib/asciidoctor/iso/converter.rb
asciidoctor-iso-0.7.3 lib/asciidoctor/iso/converter.rb
asciidoctor-iso-0.7.2 lib/asciidoctor/iso/converter.rb
asciidoctor-iso-0.7.1 lib/asciidoctor/iso/converter.rb