diff --git a/_plugins/jekyll-mathjax.rb b/_plugins/jekyll-mathjax.rb index 1130d1b0832434..748e348f1ddebe 100644 --- a/_plugins/jekyll-mathjax.rb +++ b/_plugins/jekyll-mathjax.rb @@ -9,7 +9,7 @@ # both in inline mode \\( .. \\) and block mode $$ ..$$ if page.content page.content = page.content.gsub(/\$\$(.*?)\$\$/) { |m| m.gsub('_', '\\\\_') } - page.content = page.content.gsub(/\\\\\((.*?)\\\\\)/) { |m| m.gsub('_','\\\\_') } + page.content = page.content.gsub(/\\\\\((.*?)\\\\\)/) { |m| m.gsub('_', '\\\\_') } end end