<commit_before>var MarkdownIt = require('markdown-it');
var assign = require('object-assign');

module.exports = function renderer (data, options) {
  var markConfig = this.config.markdown;
  var md;

  if (markConfig == 'commonmark' || markConfig == 'zero') {
    md = new MarkdownIt(markConfig);
  } else {
    md = new MarkdownIt(assign({}, markConfig, options));
  }
  return md.render(data.text);
};<commit_msg>refactor renderer for test pass<commit_after>var MarkdownIt = require('markdown-it');
var assign = require('object-assign');

module.exports = function (data, options) {
  var markConfig = this.config.markdown || hexo.config.markdown;
  var md;

  if (markConfig == 'commonmark' || markConfig == 'zero') {
    md = new MarkdownIt(markConfig);
  } else {
    md = new MarkdownIt(assign({}, markConfig, options));
  }
  return md.render(data.text);
};
{'fraction_non_alphanumeric': 0.15491329479768787, 'fraction_numerical': 0.0, 'mean_word_length': 4.481012658227848, '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': '6669231', 'n_tokens_mistral': 279, 'n_tokens_neox': 271, 'n_words': 68}