You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: clean_html.rb
    path of file: ./repos/devdocs/lib/docs/filters/jest
    
    the code of the file until where you have to start completion: module Docs
  class Jest
    class CleanHtmlFilter < Filter
      def call
        at_css('.markdown').prepend_child(at_css('h1'))
        @doc = at_css('.markdown')

        at_css('h1').content = 'Jest Documentation' if root_page?


    
      def call
        at_css('.markdown').prepend_child(at_css('h1'))
        @doc = at_css('.markdown')

        at_css('h1').content = 'Jest Documentation' if root_page?

        css('hr', '.hash-link', 'button', '.badge').remove

        css('.prism-code').each do |node|
          node.parent.parent.before(node)
          node.name = 'pre'
          node.remove_attribute('class')
          node['data-language'] = 'typescript'
          node.content = node.css('.token-line').map(&:content).join("\n")
        end

        css('*').remove_attribute('style')

        doc
      end