No way to render single escaped carriage return or newline in code block within a notebook markdown cell

Summary

In an .ipynb-file it's not possible to have a markdown cell with a codeblock displaying \r or \n.

Steps to reproduce

  1. Create a test.ipynb file with two cells:

    {
       "cell_type": "markdown",
       "metadata": {},
       "source": [
           "`\r\n`"
       ]
    }

    and

    {
       "cell_type": "markdown",
       "metadata": {},
       "source": [
           "`\\r\\n`"
       ]
    }
  2. view the gitlab preview rendering

  3. note that \r\n renders nothing (no newline even?), just the empty code block and \\r\\n renders \\r\\n.

Example Project

https://gitlab.com/j-zeitler/escapetest/blob/master/test.ipynb

What is the current bug behavior?

Incorrectly rendering notebook markdown code block preview in gitlab

What is the expected correct behavior?

Should render "`\\r\\n`" as \r\n. This is the current behavior of e.g. jupyter notebook/lab.

Relevant logs and/or screenshots

Side-by-side comparison. image