Need some way to disable username comment links

Issue #9247 wontfix
Emilian Marius Bold
created an issue

Hy,

In Java you have annotations that are written using '@', like @Override etc.

Commenting on pull requests becomes a challenge if you also want to write an annotation because the site tries to transform that into an username link.

For, example, just noticed that @ link is an actual user but it's also a Javadoc tag (http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#{@link} ).

It's also unclear to me if this isn't a security risk -- will referencing users without repository access actually leak some private information via email or the web site?

It would be nice to be able to disable this at repository level or to just restrict it to users that have access to the repository.

Comments (2)

  1. Erik van Zijst staff

    If you are pasting code snippets in comments, you might want to avoid Markdown rendering for more reasons than just user mentions. Lots of language specific syntax might clash with Markdown, leaving an unreadable mess.

    You'll want to indent multi line code snippets by 4 spaces and you'll get:

    @Test
    public void testFoo() {
    }
    

    If you merely have a single word, you can enclose it in back ticks: @Test.

    Have a look the Markdown documentation

    It's also unclear to me if this isn't a security risk -- will referencing users without repository access actually leak some private information via email or the web site?

    No. Users that do not have access to your repository will not get access just because you mentioned them.

  2. Log in to comment