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
-
Create a
test.ipynbfile with two cells:{ "cell_type": "markdown", "metadata": {}, "source": [ "`\r\n`" ] }and
{ "cell_type": "markdown", "metadata": {}, "source": [ "`\\r\\n`" ] } -
view the gitlab preview rendering
-
note that
\r\nrenders nothing (no newline even?), just the empty code block and\\r\\nrenders\\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.
