<commit_before>var marked = require('marked');
var highlightjs = require( 'highlight.js' );

marked.setOptions({
  
  renderer: new marked.Renderer(),
  gfm: true,
  tables: true,
  breaks: false,
  pedantic: false,
  sanitize: true,
  smartLists: true,
  smartypants: false,
  highlight: function( md ) {

    return highlightjs.highlightAuto( md ).value;
  }
});

module.exports = function( markdown ) {

  return marked( markdown );
};<commit_msg>Fixed it so that html in h tags are rendered instead of escaped<commit_after>var marked = require('marked');
var highlightjs = require( 'highlight.js' );

var renderer = new marked.Renderer();

renderer.heading = function( text, level ) {
  var escapedText = text.toLowerCase().replace(/[^\w]+/g, '-');

  return '<h' + level + '>' + text +  '</h' + level + '>';
};



marked.setOptions({
  
  renderer: renderer,
  gfm: true,
  tables: true,
  breaks: true,
  pedantic: false,
  sanitize: false,
  smartLists: true,
  smartypants: false,
  highlight: function( md ) {

    return highlightjs.highlightAuto( md ).value;
  }
});

module.exports = function( markdown ) {

  return marked( markdown );
};
{'fraction_non_alphanumeric': 0.14856646394439618, 'fraction_numerical': 0.0, 'mean_word_length': 3.8403361344537816, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2446901', 'n_tokens_mistral': 386, 'n_tokens_neox': 376, 'n_words': 104}