Highlight a line or a set of lines on a code snippet

I want to highlight a line or a set of lines on a code snippet.

When I used Jekyll 2.x with Redcarpet and Pygments, I added this to my website:


Now, I’m trying to use Jekyll 3.x with its defaults (Kramdown and Rouge).

I want something like the hl_lines setting described here:

How can I achieve that in Jekyll 3.x?

For instance, when we share code from GitHub, we can do that:

Don’t think it’s possible yet. Not sure if Jekyll core needs to build in support for it or if Rouge (what Jekyll uses for syntax highlighting) needs it.