<commit_before>module MarkdownFilter
  
  def self.included(base)
    base.class_eval do
      Post::Filters << :markdown
    end
  end

  def filtered_content
    if self.filter.to_sym == :markdown
      renderer = Redcarpet::Render::HTML.new(:hard_wrap => true, :filter_html => true)
      markdown = Redcarpet::Markdown.new(renderer, :autolink => true, :space_after_headers => true)
      @filtered_content = markdown.render(super).html_safe
    else
      return super
    end
  end

end<commit_msg>[#9] Add a couple more options to the processor and we're donw<commit_after>module MarkdownFilter
  
  def self.included(base)
    base.class_eval do
      Post::Filters << :markdown
    end
  end

  def filtered_content
    if self.filter.to_sym == :markdown
      renderer = Redcarpet::Render::HTML.new(:hard_wrap => true, :filter_html => true)
      markdown = Redcarpet::Markdown.new(renderer, :autolink => true, 
                                         :space_after_headers => true, 
                                         :no_intraemphasis => true,
                                         :fenced_code => true, 
                                         :gh_blockcode => true)
      @filtered_content = markdown.render(super).html_safe
    else
      return super
    end
  end

end
{'fraction_non_alphanumeric': 0.09273570324574962, 'fraction_numerical': 0.0007727975270479134, 'mean_word_length': 2.1280193236714977, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7449600', 'n_tokens_mistral': 379, 'n_tokens_neox': 360, 'n_words': 84}