7

Steps to reproduce:

Add a comment:

foo bar <http://example.com>.

Expected result, a comment showing as:

foo bar http://example.com.

The URI reference is http://example.com. It's url styling ends with the last m.

Instead, the text shown is:

foo bar <http://example.com>;.

With a less-than sign before and a semicolon after (which both shouldn't be shown).

The URI reference is http://example.com>, note the extra greater-than sign at the end. It's url styling ends with the >.

Rationale:

https://www.rfc-editor.org/rfc/rfc3986#appendix-C

4
  • foo bar <example.com>. - source: foo bar <http://example.com>.
    – Cerbrus
    Commented Sep 30, 2015 at 13:04
  • foo bar example.com. - source: foo bar http://example.com.
    – Cerbrus
    Commented Sep 30, 2015 at 13:04
  • 3
    The formatter used for the comments (called MarkdownMini) is different from the one used in posts. This seems to be a MarkdownMini bug. Commented Sep 30, 2015 at 13:23
  • It also happens using quotes: "es.stackoverflow.com" Commented Jan 17, 2016 at 1:05

1 Answer 1

2

I can't repro this exactly (in the sandbox):

foo bar <http://example.com>.

Was displayed as:

foo bar <example.com>;.

This is different from what you report as your output.

foo bar <h̲t̲t̲p̲:̲/̲/̲e̲x̲a̲m̲p̲l̲e̲.̲c̲o̲m̲>̲;.

Note Markdown help says:

Bare URLs

We have modified our Markdown parser to support "naked" URLs (in most but not all cases -- beware of unusual characters in your URLs); they will be converted to links automatically:

I often visit http://example.com.

Force URLs by enclosing them in angle brackets:

Have you seen <http://example.com>?

URLs can be relative or full.

So both your test output and my test output (although different) do not appear to match the help text.

  • They both have a ; that shouldn't be there
  • My test output is missing http://
3
  • I reproduced it in comments on the question.
    – Cerbrus
    Commented Sep 30, 2015 at 13:32
  • @Cerbrus Yes, you reproduced my test output (which is different to the OP's reported output). Commented Sep 30, 2015 at 13:46
  • Oh, I see, missing http in the rendered output.
    – Cerbrus
    Commented Sep 30, 2015 at 13:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .