<commit_before>var merge = require('merge-recursive');
var format = require('stringformat');
var toLines = require('../index').toLines;

exports.defaults = {
  embed: {
    1: '<img src="{image}" alt="{alt}" />'
  },
  block: {
    default: '<p>{content}</p>',
    firstheader: '<h1>{content}</h1>',
    secondheader: '<h2>{content}</h2>',
    thirdheader: '<h3>{content}</h3>',
    bullet: '<ul><li>{content}</li></ul>',
    list: '<ol><li>{content}</li></ol>'
  },
  inline: {
    default: '{content}',
    link: '<a href="{link}">{content}</a>',
    bold: '<b>{content}</b>',
    italic: '<i>{content}</i>',
    underline: '<u>{content}</u>',
    strikethrough: '<s>{content}</s>',
    color: '<span style="color:{color}">{content}</span>',
    font: '<span style="font-family:{font}">{content}</span>',
  }
};

//
// Process a single line into HTML
//
// @param {line} the line object, containing ops and attributes<commit_msg>Kill default color + font styles<commit_after>var merge = require('merge-recursive');
var format = require('stringformat');
var toLines = require('../index').toLines;

exports.defaults = {
  embed: {
    1: '<img src="{image}" alt="{alt}" />'
  },
  block: {
    default: '<p>{content}</p>',
    firstheader: '<h1>{content}</h1>',
    secondheader: '<h2>{content}</h2>',
    thirdheader: '<h3>{content}</h3>',
    bullet: '<ul><li>{content}</li></ul>',
    list: '<ol><li>{content}</li></ol>'
  },
  inline: {
    default: '{content}',
    link: '<a href="{link}">{content}</a>',
    bold: '<b>{content}</b>',
    italic: '<i>{content}</i>',
    underline: '<u>{content}</u>',
    strikethrough: '<s>{content}</s>'
  }
};

//
// Process a single line into HTML
//
// @param {line} the line object, containing ops and attributes
{'fraction_non_alphanumeric': 0.25995449374288965, 'fraction_numerical': 0.007963594994311717, 'mean_word_length': 3.9271708683473388, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '6494254', 'n_tokens_mistral': 597, 'n_tokens_neox': 608, 'n_words': 123}