<commit_before>module ExportHelper
  def markdown_text(text)
    text ||= ""
    
    renderer_options = { filter_html: true }
    markdown_extensions = { autolink: true, tables: true }

    renderer = Redcarpet::Render::HTML.new(renderer_options)
    markdown = Redcarpet::Markdown.new(renderer, markdown_extensions)
    markdown.render(text).html_safe
  end
end<commit_msg>Fix discrepencies between markdown rendered in app and email<commit_after>module ExportHelper
  def markdown_text(text)
    text ||= ""

    renderer_options    = { filter_html: true }
    markdown_extensions = { autolink: true, tables: true, lax_spacing: true }

    renderer = Redcarpet::Render::HTML.new(renderer_options)
    markdown = Redcarpet::Markdown.new(renderer, markdown_extensions)

    markdown.render(text).html_safe
  end
end
{'fraction_non_alphanumeric': 0.09803921568627451, 'fraction_numerical': 0.0, 'mean_word_length': 4.557823129251701, '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': '6617712', 'n_tokens_mistral': 265, 'n_tokens_neox': 249, 'n_words': 51}