Skip to content

Rendering backslash escaped markdown fails

Summary

Rendering backslash escaped markdown fails

Not found in:

Relevant documentation: https://daringfireball.net/projects/markdown/syntax#backslash

Steps to reproduce

Put this in any markdown text to render on GitLab:

- [code\\](code)
- [documentation\\](documentation)

Example Project

https://gitlab.com/wiert.me/gitlab/issues/blob/master/backslash-escaping.md

What is the current bug behavior?

Renders as this fragment:

<ul dir="auto">
<li>[code\](code)</li>
<li>[documentation\](documentation)</li>
</ul>

What is the expected correct behavior?

Renders as this fragment:

<ul dir="auto">
<li><a href="code">code\</a></li>
<li><a href="documentation">documentation\</a></li>
</ul>

Full html at https://gitlab.com/wiert.me/gitlab/issues/blob/master/backslash-escaping.html

Relevant logs and/or screenshots

Screenshot

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

N/A

Results of GitLab application Check

N/A

Possible fixes

N/A

Edited by Jeroen Wiert Pluimers