Sha256: 29c778f541fa58a159ba073cabd8ae51afa6693e43a1e419a2c003149bffc83b
Contents?: true
Size: 412 Bytes
Versions: 45
Compression:
Stored size: 412 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) }.reject { |_, val| val.nil? } super.merge(new_options) end end end end end
Version data entries
45 entries across 44 versions & 2 rubygems