diff options
Diffstat (limited to 'lib/asciidoctor/interdoc_reftext.rb')
-rw-r--r-- | lib/asciidoctor/interdoc_reftext.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/asciidoctor/interdoc_reftext.rb b/lib/asciidoctor/interdoc_reftext.rb index dc884cb..165bd13 100644 --- a/lib/asciidoctor/interdoc_reftext.rb +++ b/lib/asciidoctor/interdoc_reftext.rb @@ -1,9 +1,12 @@ # frozen_string_literal: true -require 'asciidoctor' unless RUBY_PLATFORM == 'opal' -require 'asciidoctor/extensions' unless RUBY_PLATFORM == 'opal' require 'asciidoctor/interdoc_reftext/version' require 'asciidoctor/interdoc_reftext/processor' -Asciidoctor::Extensions.register do - treeprocessor Asciidoctor::InterdocReftext::Processor +unless RUBY_PLATFORM == 'opal' + require 'asciidoctor' + require 'asciidoctor/extensions' + + Asciidoctor::Extensions.register do + treeprocessor Asciidoctor::InterdocReftext::Processor + end end |