Markdown
Code blocks
Code block use rouge
for syntax highlighting. Such blocks are defined by a couple of triple backticks or the highlight
tag:
```javacript
// some javascript code
const sum = (a, b) => a + b;
```
{% highlight javascript linenos %}
// some javascript code
const sum = (a, b) => a + b;
{% endhighlight %}
Do not forget to add CSS file corresponding to code colours you prefer. To generate the CSS files: rougify style monokai.sublime > syntax.css rougify style monokai.sublime > syntax.css Check documentation for more details
To escape special characters, use the ...
tags.
jekyll markdown