diff --git a/lib/fimfic2pdf/transformer.rb b/lib/fimfic2pdf/transformer.rb index 1c521dd..9860bc2 100644 --- a/lib/fimfic2pdf/transformer.rb +++ b/lib/fimfic2pdf/transformer.rb @@ -145,7 +145,8 @@ def latex_escape(string) gsub('%', '\%'). gsub('&', '\\\&'). gsub('$', '\\$'). - gsub('~', '\\textasciitilde{}') + gsub('~', '\\textasciitilde{}'). + gsub('^', '\\textasciicircum{}') end def unicodify(string)