<commit_before>require "redcarpet"

module Qiita
  module Markdown
    module Filters
      class Redcarpet < HTML::Pipeline::TextFilter
        class << self
          # Memoize.
          # @return [Redcarpet::Markdown]
          def renderer
            @renderer ||= ::Redcarpet::Markdown.new(
              ::Redcarpet::Render::HTML.new(
                hard_wrap: true,
              ),
              autolink: true,
              fenced_code_blocks: true,
              no_intra_emphasis: true,
              strikethrough: true,
              tables: true,
            )
          end<commit_msg>Enable footnotes markdown syntax<commit_after>require "redcarpet"

module Qiita
  module Markdown
    module Filters
      class Redcarpet < HTML::Pipeline::TextFilter
        class << self
          # Memoize.
          # @return [Redcarpet::Markdown]
          def renderer
            @renderer ||= ::Redcarpet::Markdown.new(
              ::Redcarpet::Render::HTML.new(
                hard_wrap: true,
              ),
              autolink: true,
              fenced_code_blocks: true,
              footnotes: true,
              no_intra_emphasis: true,
              strikethrough: true,
              tables: true,
            )
          end
{'fraction_non_alphanumeric': 0.08585055643879173, 'fraction_numerical': 0.0, 'mean_word_length': 1.498015873015873, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4426587', 'n_tokens_mistral': 355, 'n_tokens_neox': 340, 'n_words': 72}