Sha256: e21b3b61a5b8f80feaa9a4af53aef06dcd5d948a80e81eb3a684042f3252a411
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
require "metanorma/processor" module Metanorma module M3d class Processor < Metanorma::Processor def initialize @short = :m3d @input_format = :asciidoc @asciidoctor_backend = :m3d end def output_formats { html: "html", doc: "doc" } end def version "Asciidoctor::M3d #{Asciidoctor::M3d::VERSION}" end def input_to_isodoc(file) Metanorma::Input::Asciidoc.new.process(file, @asciidoctor_backend) end def output(isodoc_node, outname, format, options={}) case format when :html IsoDoc::M3d::HtmlConvert.new(options).convert(outname, isodoc_node) when :doc IsoDoc::M3d::WordConvert.new(options).convert(outname, isodoc_node) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-m3d-0.3.2 | lib/metanorma/m3d/processor.rb |