<commit_before>function! PreviewMKD()
  ruby << RUBY
    $LOAD_PATH.unshift(File.expand_path('vim-markdown-preview/', 
                                         File.dirname(__FILE__)))

    require('kramdown/kramdown')

    text = Array.new(VIM::Buffer.current.count) do |i| 
      VIM::Buffer.current[i + 1]
    end.join("\n")

    style = <<-STYLE
    <style type="text/css">
    body div#content { 
      margin            : 0 auto;
      width             : 920px;
      background-color  : #f8f8f8;
      padding           : .7em;
      font-size         : 13.34px;
      font-family       : verdana, sans-serif;
      border            : 1px #E0E0E0 solid; 
    }

    body div#content h1, body div#content h2 {
     padding-top  : 10px;
     border-top   : 4px solid #E0E0E0;
    }

    body div#content pre {
      padding          : 5px;<commit_msg>Wrong path was being added to $LOAD_PATH (thanks @dannytatom)<commit_after>function! PreviewMKD()
  ruby << RUBY
    $LOAD_PATH.unshift(File.join(ENV['HOME'], '.vim', 'plugin',
                       'vim-markdown-preview'))

    require('kramdown/kramdown')

    text = Array.new(VIM::Buffer.current.count) do |i| 
      VIM::Buffer.current[i + 1]
    end.join("\n")

    style = <<-STYLE
    <style type="text/css">
    body div#content { 
      margin            : 0 auto;
      width             : 920px;
      background-color  : #f8f8f8;
      padding           : .7em;
      font-size         : 13.34px;
      font-family       : verdana, sans-serif;
      border            : 1px #E0E0E0 solid; 
    }

    body div#content h1, body div#content h2 {
     padding-top  : 10px;
     border-top   : 4px solid #E0E0E0;
    }

    body div#content pre {
      padding          : 5px;
{'fraction_non_alphanumeric': 0.12442660550458716, 'fraction_numerical': 0.02981651376146789, 'mean_word_length': 1.7054263565891472, 'pattern_counts': {'":': 0, '<': 13, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7269698', 'n_tokens_mistral': 639, 'n_tokens_neox': 578, 'n_words': 119}