Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links don't open in new tab #335

Open
monotkate opened this issue Mar 2, 2016 · 1 comment
Open

Links don't open in new tab #335

monotkate opened this issue Mar 2, 2016 · 1 comment

Comments

@monotkate
Copy link
Member

I'm not sure how this relates to markdown, but currently links in idea descriptions don't open in a separate tab, the overwrite the current one. Mildly annoying if you're not mousewheel clicking.

Low Priority.

@Mctalian
Copy link
Member

Mctalian commented Mar 3, 2016

For reference:

https://github.com/Hypercubed/angular-marked#override-rendered-markdown-links

app.config(['markedProvider', function (markedProvider) {
  markedProvider.setRenderer({
    link: function(href, title, text) {
      return "<a href='" + href + "'" + (title ? " title='" + title + "'" : '') + " target='_blank'>" + text + "</a>";
    }
  });
}]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants