<commit_before>var EOL = require('os').EOL;
var util = require('util');
var TextRenderer = require('./text');
var repeat = require('cli-util').repeat;
var dnl = EOL + EOL;

var elements = require('manual').elements;
var escape = require('manual').sanitize;
var strip = function(text) {
  return text.replace(/^\.[a-zA-Z]+\n/gmi, '');
}

function ManRenderer(options) {
  TextRenderer.apply(this, arguments);
}

util.inherits(ManRenderer, TextRenderer);

ManRenderer.prototype.token = function(token, parser) {
  //if(token.text === '`') {
    //console.dir(token);
  //}
}

ManRenderer.prototype.code = function(code, lang, escaped) {
  var single = !/\n/.test(code);
  if(single) {
    // single line code blocks are bold
    return EOL +  '  ' + elements.fb + escape(code) + elements.fr + EOL;
  }
  //return EOL + util.format(elements.sp, escape(code));
  return EOL + elements.sp + escape(code) + EOL;
};

ManRenderer.prototype.blockquote = function(quote) {
  // TODO: remove formatting from child elements
  //
  //console.log('got blockquote element "%s"', quote);
  //if(!quote) return '';<commit_msg>Do not highlight (bold) single line code blocks.<commit_after>var EOL = require('os').EOL;
var util = require('util');
var TextRenderer = require('./text');
var repeat = require('cli-util').repeat;
var dnl = EOL + EOL;

var elements = require('manual').elements;
var escape = require('manual').sanitize;
var strip = function(text) {
  return text.replace(/^\.[a-zA-Z]+\n/gmi, '');
}

function ManRenderer(options) {
  TextRenderer.apply(this, arguments);
}

util.inherits(ManRenderer, TextRenderer);

ManRenderer.prototype.token = function(token, parser) {
  //if(token.text === '`') {
    //console.dir(token);
  //}
}

ManRenderer.prototype.code = function(code, lang, escaped) {
  var single = !/\n/.test(code);
  if(single) {
    // single line code blocks are bold
    return EOL +  '  ' + escape(code) + EOL;
  }
  //return EOL + util.format(elements.sp, escape(code));
  return EOL + elements.sp + escape(code) + EOL;
};

ManRenderer.prototype.blockquote = function(quote) {
  // TODO: remove formatting from child elements
  //
  //console.log('got blockquote element "%s"', quote);
  //if(!quote) return '';
{'fraction_non_alphanumeric': 0.1802247191011236, 'fraction_numerical': 0.0, 'mean_word_length': 3.9356984478935697, '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': '6028790', 'n_tokens_mistral': 738, 'n_tokens_neox': 731, 'n_words': 169}