Sha256: 55b136b1e65868cbbf45a7defa49406df59919fbfdfbb3cae3149d986ef7fc88
Contents?: true
Size: 369 Bytes
Versions: 74
Compression:
Stored size: 369 Bytes
Contents
require "metanorma/input" module Metanorma module UN module Input class Asciidoc < ::Metanorma::Input::Asciidoc def extract_options(file) head = file.sub(/\n\n.*$/m, "\n") /\n(?<toc>:toc:)/ =~ head new_options = { toc: defined?(toc) }.compact super.merge(new_options) end end end end end
Version data entries
74 entries across 74 versions & 1 rubygems