DEV Community

Discussion on: Escaping backticks in a code block block does not work

Collapse
 
nektro profile image
Meghan (she/her) • Edited
\`\`\`ruby
require "zlib"

def compress_file(file_name)
  zipped = "#{file_name}.gz"

  Zlib::GzipWriter.open(zipped) do |gz|
    gz.write IO.binread(file_name)
  end
end
\`\`\`

okay, now its the same as above, idk what happened ¯\(ツ)