<commit_before>import angular from 'angular';
import mdfigcaption from 'mdfigcaption';
import deflist from 'markdown-it-deflist';
import attrs from 'markdown-it-attrs';
export default /*@ngInject*/class MarkdownProvider{
  constructor(markdownit){
    this.config = {
      preset: 'default',
      options: {
        html: true,
        typographer: true,
        quotes: '„“‚‘',
        breaks: true
      },
      plugins: [mdfigcaption, deflist,attrs]
    };
    this.markdownit = markdownit;
  }
  get preset(){
    return this.config.preset;
  }
  set preset(val){
    this.config.preset = val;
    return this;
  }
  get options(){
    return this.config.options;
  }
  set options(val){
    angular.extend(this.config.options, val);
    return this;<commit_msg>Add footnotes to markdown parser<commit_after>import angular from 'angular';
import mdfigcaption from 'mdfigcaption';
import deflist from 'markdown-it-deflist';
import attrs from 'markdown-it-attrs';
import footnote from 'markdown-it-footnote';
export default /*@ngInject*/class MarkdownProvider{
  constructor(markdownit){
    this.config = {
      preset: 'default',
      options: {
        html: true,
        typographer: true,
        quotes: '„“‚‘',
        breaks: true
      },
      plugins: [mdfigcaption, deflist,attrs,footnote]
    };
    this.markdownit = markdownit;
  }
  get preset(){
    return this.config.preset;
  }
  set preset(val){
    this.config.preset = val;
    return this;
  }
  get options(){
    return this.config.options;
  }
  set options(val){
    angular.extend(this.config.options, val);
    return this;
{'fraction_non_alphanumeric': 0.12414649286157665, 'fraction_numerical': 0.0, 'mean_word_length': 3.0199501246882794, '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': '3725970', 'n_tokens_mistral': 512, 'n_tokens_neox': 514, 'n_words': 121}