Skip to content

Commit

Permalink
Merge pull request #1659 from kmuto/fix-img-math
Browse files Browse the repository at this point in the history
fix initialize ImgMath
  • Loading branch information
takahashim authored Jan 27, 2021
2 parents a2a00c4 + 4b7765f commit 4926ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/review/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
require 'review/textutils'
require 'review/compiler'
require 'review/sec_counter'
require 'review/img_math'
require 'stringio'
require 'fileutils'
require 'tempfile'
Expand Down Expand Up @@ -56,6 +57,7 @@ def bind(compiler, chapter, location)
@tabwidth = nil
@tsize = nil
if @book && @book.config
@img_math ||= ReVIEW::ImgMath.new(@book.config)
if words_file_path = @book.config['words_file']
if words_file_path.is_a?(String)
words_files = [words_file_path]
Expand Down

0 comments on commit 4926ef1

Please sign in to comment.