Sha256: fe5a205ebaaa6ecefff71dc1a566f386804c7469c584b311100aac0ee3a933e6
Contents?: true
Size: 760 Bytes
Versions: 2
Compression:
Stored size: 760 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-m3d-0.3.1 | lib/metanorma/m3d/processor.rb |
asciidoctor-m3d-0.3.0 | lib/metanorma/m3d/processor.rb |