<commit_before>/* global hexo */

var fs = require('fs');
var showdown  = require('showdown');
var converter = new showdown.Converter();

// Read the file given, strip of #vNEXT, render w/ markdown
hexo.extend.tag.register('changelog', function(args) {
  var str = fs.readFileSync(args[0], 'utf8');
  str = str.replace('## v.NEXT', '');
  return converter.makeHtml(str);
});<commit_msg>Relax list-indentation requirements of 'showdown' for Changelog/History.<commit_after>/* global hexo */

var fs = require('fs');
var showdown  = require('showdown');
var converter = new showdown.Converter({
  disableForced4SpacesIndentedSublists: true,
});

// Read the file given, strip of #vNEXT, render w/ markdown
hexo.extend.tag.register('changelog', function(args) {
  var str = fs.readFileSync(args[0], 'utf8');
  str = str.replace('## v.NEXT', '');
  return converter.makeHtml(str);
});
{'fraction_non_alphanumeric': 0.1693181818181818, 'fraction_numerical': 0.005681818181818182, 'mean_word_length': 5.075862068965518, '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': '4852315', 'n_tokens_mistral': 293, 'n_tokens_neox': 289, 'n_words': 76}