How to highlight Markdown code in Jekyll?

I want to highlight the markdown code in jekyll, but I cannot find a way how to do it. I looked at Pygement lexers but I didn't find one for markdown or kramdown.

I can highlight other codes but not markdowns and kramdawn.

+3


source to share


2 answers


You can use Rouge or Coderay for this purpose.



+1


source


You can use something like this:



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

      

+1


source







All Articles