<commit_before>'use strict';

var ultramarked = require('ultramarked');
var htmlmd = require('html-md');

ultramarked.setOptions({
  smartLists: true,
  ultralight: true,
  ultrasanitize: true,
  terminal: true
});

module.exports = function () {

    return {
        send: function (model, done) {
            var body = model.body;

            delete model.social;
            delete model.styles;
            delete model.html;
            delete model.body;
            delete model.generated;

            var md = htmlmd(body);
            var term = ultramarked(md);

            console.log(JSON.stringify(model, null, 2));
            console.log(term);
            done();
        }
    };
};<commit_msg>scoped terminal provider<commit_after>'use strict';

var ultramarked = require('ultramarked');
var htmlmd = require('html-md');
var options = {
  smartLists: true,
  ultralight: true,
  ultrasanitize: true,
  terminal: true
};

module.exports = function () {

    return {
        send: function (model, done) {
            var body = model.body;

            delete model.social;
            delete model.styles;
            delete model.html;
            delete model.body;
            delete model.generated;

            var md = htmlmd(body);
            var term = ultramarked(md, options);

            console.log(JSON.stringify(model, null, 2));
            console.log(term);
            done();
        }
    };
};
{'fraction_non_alphanumeric': 0.11727966689798751, 'fraction_numerical': 0.0013879250520471894, 'mean_word_length': 1.924949290060852, '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': '5598505', 'n_tokens_mistral': 430, 'n_tokens_neox': 410, 'n_words': 100}