Rouge Console Lexer - incorrect backslashes added to output

Hi,

I’m trying to highlight some console code in Jekyll like the following

{% highlight console %}
$ cargo install rustfilt
$ nm -gU target/release/libswift_bridged.rlib | rustfilt | grep -i integers
target/release/libswift_bridged.rlib:lib.rmeta: no symbols
0000000000000000 T _swift_bridged::add_integers
{% endhighlight %}

However, incorrect backslashes are added to the rendered output at the second command’s $ sign and before the _ in libswift_bridged.rlib. Sample output below.

I’ve tried

  1. Splitting the command into multiple {% highlight console %} blocks. But, the error still persists.
  2. Change the console prompt from $ to # in my input. This resolves the backslash before $. But, it still persists before _.

Changing from {% highlight console %} to markdown code fence ``` works. But, the justification is different from the liquid syntax, and, I’d rather have it be consistent.

I don’t think it’s a Rogue issue as it renders fine here.

Any ideas on how to resolve this? Thanks