mehdix
mehdix

Reputation: 5154

How to highlight Markdown code in Jekyll?

I want to highlight markdown code in jekyll but I can't find a way how to do it. I looked at Pygement's lexers but I did not found one for markdown or kramdown.

I can highlight other codes but not markdown and kramdawn.

Upvotes: 3

Views: 502

Answers (2)

Gunith D
Gunith D

Reputation: 1863

You could use something like this:

```markdown
{% raw %}{% if page.tags %}...{% endif %}{% endraw %}
```

Upvotes: 1

Zombo
Zombo

Reputation: 1

You can use Rouge or Coderay for this purpose.

Upvotes: 1

Related Questions