Sha256: 75cc24fb30556dba3df5927e246b4e8afe0125f00f3763b0c38351ed5f433fc5
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true unless RUBY_ENGINE == 'opal' require_relative 'include_directive_tracker' require_relative 'conditional_directive_tracker' end module Asciidoctor::Reducer class Preprocessor < ::Asciidoctor::Extensions::Preprocessor def process doc, reader doc.options[:preserve_conditionals] ? (reader.extend IncludeDirectiveTracker) : (reader.extend ConditionalDirectiveTracker, IncludeDirectiveTracker) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-reducer-1.1.0 | lib/asciidoctor/reducer/preprocessor.rb |