0

Consider URL with # after bracket like https://en.wikipedia.org/wiki/Albert_Brown_(American_veteran)#Early_life.

I can inline link on Stack Exchange. For example, the following markdown will properly render as Inline Link on SE:

[Inline Link](https ://en.wikipedia.org/wiki/Albert_Brown_(American_veteran)#Early_life)

On Reddit instead of Inline Link i get:
Reddit link doesn't include the bookmark in the link

3 Answers 3

1

You'll only have this issue in Old Reddit which interprets any closing parentheseses ) as the closing delimiter of a URL.

New Reddit interprets Markdown links differently and will allow unescaped parentheses in the URL portion of a link.

Example Markdown Link Rendering

For the Markdown code that follows, the table below shows the differences in rendering.

[Test](https://en.wikipedia.org/wiki/Albert_Brown_(American_veteran)#Early_life)

Rendered in Reddit

2
  • 1
    @Blindspots I did a quick test on a reddit comment. It displayed correctly on the new reddit but not on the old reddit. I had to delete the test though.
    – ybouane
    Jan 17 at 21:07
  • 1
    Maybe use a subreddit like r/sandboxtest
    – Laurel
    Jan 17 at 21:25
0

Issues

  1. Parentheses are reserved characters and should be percent-encoded when they conflict with use as a delimiter.

    The Markdown link with percent-encoded parentheses %28 and %29 would be:

    [Test](https://en.wikipedia.org/wiki/Albert_Brown_%28American_veteran%29#Early_life)
  2. Markdown is not a coding language but a family of many different text markup implementations that can behave differently in subtle and not-so-subtle ways. Stack Exchange has its own variant and Reddit has their own custom versions for each of Old and New Reddit.

Learning Resources

-1

The # after a path refers to the DOM Element with the id following the #.

The only reason for this not to work on Reddit is, if they somehow don't allow links containing the # character. In this case, there is no way for you to specifically link to the id.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.