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: application_helper.rb
    path of file: ./repos/bootcamp/app/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ApplicationHelper
  EXTRACTING_CHARACTERS = 50

  def my_practice?(practice)
    return false if current_user.blank?

    [:everyone, current_user.job].include?(practice.target)
  end

  def md2html(text)
    html = CommonMarker.render_html(text, :HARDBREAKS) unl
    
  def searchable_summary(comment, word = '')
    summary = strip_tags(md2html(comment)).gsub(/[\r\n]/, '')
    words = word.split(/[[:space:]]+/).compact.reject(&:empty?) unless word.nil?
    return summary if words.blank?

    words_pattern = words.map { |keyword| Regexp.escape(keyword) }.join('|')
    words_regexp = Regexp.new(words_pattern, Regexp::IGNORECASE)
    match = words_regexp.match(summary)
    return summary if match.nil?

    begin_offset = (match.begin(0) - EXTRACTING_CHARACTERS).clamp(0, Float::INFINITY)
    summary[begin_offset...]
  end