lib/softcover/mathjax.rb in softcover-1.1.18 vs lib/softcover/mathjax.rb in softcover-1.1.19

- old
+ new

@@ -49,11 +49,11 @@ end # Rerturns a version of the MathJax configuration escaped for the server. # There's an extra interpolation somewhere between here and the server, # which this method corrects for. - def self.escaped_config - self.config.gsub('\\', '\\\\\\\\') + def self.escaped_config(options={}) + self.config(options).gsub('\\', '\\\\\\\\') end MATHJAX = 'MathJax/MathJax.js?config=' AMS_HTML = '/' + MATHJAX + 'TeX-AMS_HTML' AMS_SVG = MATHJAX + 'TeX-AMS-MML_SVG'