Skip to content

Markdown renders a link even with space(s) between brackets and parentheses

Summary

When reviewing a past comment of mine, I noticed the sentence didn't make sense because it read “…” instead of “[…] (X left)”. I had placed an ellipsis […] inside the quotation marks because quoted material is missing at the beginning.

I edited the comment and the “[…] (X left)” was still there, but it is being rendered as a link, even though there is a space between the right bracket ] and the left parentheses (.

Steps to reproduce

In a markdown editable area (wiki, file, issue, merge request, comment, etc.) enter […] followed by Space and then (X left)

Basically enter the expected formatting for a markdown link, but with a space between the brackets and the parentheses.

Expected behavior

[…] (X left) should render:

image

This was the behavior when I entered my comment.

Actual behavior

Currently […] (X left) renders as a link:

image