mvcccccc
mvcccccc

Reputation: 116

How to use unicode in Jekyll code highlight?

I'm new to Jekyll. Just trying to use Unicode (Greek letters) in a Jekyll highlight block. Is there a way to escape the highlight block and use plain HTML?

The following code is working.

{% highlight Racket %} (define foo (lambda (x) x)) {% endhighlight %}

And I would like to replace that "lambda" with a "λ".

Thank you for you help!

Upvotes: 0

Views: 126

Answers (1)

David Jacquel
David Jacquel

Reputation: 52829

As long as your using utf-8 (jekyll default), you can use any utf-8 character as is.

So : {% highlight Racket %} (define foo (λ(x) x)) {% endhighlight %} is ok.

Upvotes: 1

Related Questions