First off I'm pretty new to Jekyll (and posting on StackOverflow) but I've managed thus far. I had at one point gotten Jekyll to output highlighted code snippets within a fenced block code. Eventually I came back to work on things a while later and noticed the formatting went back to this, without the line numbers and <a>
tags:
<code class="ruby language-ruby" data-lang="ruby">
<span class="k">def</span>
<span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
<span class="nb">puts</span>
<span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
<span class="k">end</span>
<span class="n">print_hi</span>
<span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
<span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span>
</code>
Above code is derived from:
```ruby
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
```
My _config.yml:
name: Your New Jekyll Site
markdown: redcarpet
pygments: true
permalinks: pretty.
One key thing I noticed was that when I run rvm use system
in the terminal, it serves jekyll with ruby 1.8.7 and let's me know in the terminak (which I assume would be a problem. Alternatively when I use ruby 2.0.0-p247, it just serves it but doesn't tell me which version it's being served with.
Pulling out my hair over this!