<commit_before>'use strict';
import Remarkable from 'remarkable';
declare var Prism: any;

const md = new Remarkable({
  html: true,
  linkify: true,
  breaks: true,
  typographer: false,
  highlight: (str, lang) => {
    if (lang === 'json') lang = 'js';
    let grammar = Prism.languages[lang];
    //fallback to clike
    if (!grammar) return str;
    return Prism.highlight(str, grammar);<commit_msg>Revert markdown newlines to become breaks (related to SP-82)<commit_after>'use strict';
import Remarkable from 'remarkable';
declare var Prism: any;

const md = new Remarkable({
  html: true,
  linkify: true,
  breaks: false,
  typographer: false,
  highlight: (str, lang) => {
    if (lang === 'json') lang = 'js';
    let grammar = Prism.languages[lang];
    //fallback to clike
    if (!grammar) return str;
    return Prism.highlight(str, grammar);
{'fraction_non_alphanumeric': 0.13434579439252337, 'fraction_numerical': 0.002336448598130841, 'mean_word_length': 3.8693181818181817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6159981', 'n_tokens_mistral': 292, 'n_tokens_neox': 273, 'n_words': 93}