<commit_before>require_relative '../_config'
require 'redcloth'

module Jekyll
  module MarkdownFilter
    def md_to_html(text)
      new_text = RedCloth.new(text)
      new_text.to_html
    end
  end
end

Liquid::Template.register_filter(Jekyll::MarkdownFilter)<commit_msg>Switch md_to_html plugin to using RDiscount<commit_after>require_relative '../_config'
require 'rdiscount'

module Jekyll
  module MarkdownFilter
    def md_to_html(text)
      new_text = RDiscount.new(text)
      new_text.to_html
    end
  end
end

Liquid::Template.register_filter(Jekyll::MarkdownFilter)
{'fraction_non_alphanumeric': 0.08275862068965517, 'fraction_numerical': 0.0, 'mean_word_length': 4.586538461538462, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2811475', 'n_tokens_mistral': 204, 'n_tokens_neox': 201, 'n_words': 38}