lib/softcover/mathjax.rb in softcover-0.7.2 vs lib/softcover/mathjax.rb in softcover-0.7.3
- old
+ new
@@ -2,9 +2,11 @@
module Mathjax
# Returns the MathJax configuration.
def self.config(options = {})
chapter_number = if options[:chapter_number]
+ # Call .inspect.inspect to escape the chapter number
+ # code for interpolation.
options[:chapter_number].inspect.inspect
else
'#{chapter_number}'
end
<<-EOS