Sha256: 9180f9ab31811b3833e160a60b68997035705a729383aa25bc5dd0e71245184c

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

require "asciidoctor"
require "asciidoctor/iso/version"
require "asciidoctor/iso/base"
require "asciidoctor/iso/front"
require "asciidoctor/iso/lists"
require "asciidoctor/iso/inline_anchor"
require "asciidoctor/iso/blocks"
require "asciidoctor/iso/section"
require "asciidoctor/iso/table"
require "asciidoctor/iso/validate"
require "asciidoctor/iso/utils"
require "asciidoctor/iso/cleanup"

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::InlineAnchor
      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 :pass, :content
      alias_method :embedded, :content
      alias_method :verse, :quote
      alias_method :literal, :content
      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

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-iso-0.6.0 lib/asciidoctor/iso/converter.rb