Reputation: 1336
I'm using Jekyll with Github Pages and I'm having trouble displaying Julia code with proper syntax highlighting on my website.
Here is my blog post:
---
layout: post
title: 'Example post'
---
Here the highlighting works:
{% highlight python %}
# Python
x = 9
for i in range(1, 11):
y = sqrt(x) - i
print(y)
{% endhighlight %}
Here it doesn't:
{% highlight julia %}
# Julia
x = 9
for i = 1:10
y = sqrt(x) - i
println(y)
end
{% endhighlight %}
Which when I run Jekyll locally with bundle exec jekyll serve --drafts
produces the following (screenshot):
I read that Julia should be supported, so I'm not sure what might have gone wrong.
My config_yml
looks something like this:
# Permalinks
permalink: pretty
# Setup
title: MyTitle
url: http://mywebsite.github.io
description: "Hello, I'm me."
paginate: 4
baseurl: ""
# Assets
# We specify the directory for Jekyll so we can use @imports.
sass:
sass_dir: _sass
style: :compressed
# About/contact
author:
name: Firstname Surname
email: [email protected]
# Custom vars
version: 2.0.0
github:
repo: https://github.com/poole/poole
# Gems
gems:
- jekyll-paginate
- jekyll-gist
pages_list:
FistPage: '/FirstPage'
SecondPage: '/SecondPage'
encoding: utf-8
# Choose Markdown version
markdown: kramdown
Any ideas of how I might get this to work would be much appreciated.
Upvotes: 1
Views: 381
Reputation: 136948
It looks like your local gems need to be updated. The latest release of Jekyll is currently 3.4.0.
As described in their documentation you can update Jekyll by running
gem update jekyll
Try running
gem oudated
to see if Rouge (and other gems) also need updating.
Upvotes: 3