Skip to content

Commit

Permalink
ruby formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shiltemann committed May 10, 2024
1 parent c2b42f4 commit b7330a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/jekyll-mathjax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b7330a5

Please sign in to comment.