Fix converter encoding.

This commit is contained in:
Danila Fedorin 2020-12-15 03:18:12 +00:00
parent a6673549ad
commit 5f8976a294

View File

@ -31,5 +31,5 @@ files.each do |file|
document.search('//*[not(ancestor-or-self::code)]/text()').each do |t| document.search('//*[not(ancestor-or-self::code)]/text()').each do |t|
t.replace(perform_katex_sub(inline_cache, display_cache, t.content)) t.replace(perform_katex_sub(inline_cache, display_cache, t.content))
end end
File.write(file, document.to_html) File.write(file, document.to_html(encoding: 'US-ASCII'))
end end