module Metanorma module Input class Asciidoc < Base def process(file, type) Asciidoctor.convert( file, to_file: false, safe: :safe, backend: type, header_footer: true, attributes: %w(nodoc stem xrefstyle=short) ) end def extract_options(file) header = file.sub(/\n\n.*$/m, "\n") /\n:script: (?