label are not rendered in wiki only project
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label. For the Community Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=bug For the Enterprise Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary Labels are not rendered in wikis when issue **and** repository permissions are disabled on project ### Steps to reproduce Disable issue **and** repository permissions on project settings ![image](/uploads/602c4d6746b62946fea61247ec4e5a7d/image.png) ### Example Project https://gitlab.com/ezzarghili/label-wiki/wikis/home ### What is the current *bug* behavior? instead of rendering the colored label the actual text is shown so gitlab-ce~2278648 will display `~bug` ### What is the expected *correct* behavior? The actual label should be rendered properly ### Relevant logs and/or screenshots Wiki page text ```markdown this is the label ~MyLabel ``` **Expected:** ![image](/uploads/826f532e5d6735138c21b98d5e6782ad/image.png) **Current:** ![image](/uploads/bdfc06bcda3e179edbbc0bcfd6860b25/image.png) ### Output of checks This bug happens on GitLab.com Also happens on a local on-premise version of gitlab #### Results of GitLab environment info #### Results of GitLab application Check ### Possible fixes
issue