class FixImage < Nanoc3::Filter identifier :fix_img def run(content, params={}) content.gsub(%r{

(]*>)

}) do |m| $1.to_s end end end