russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.41k stars 596 forks source link

Nofollow vs UGC #669

Open Aspie96 opened 4 years ago

Aspie96 commented 4 years ago

In #52, the "nofollow" rel attribute was added to links.

This was a good idea, however for formatting and displaying untrusted user data, the ability to force rel="ugc" would be better.

Please see: https://support.google.com/webmasters/answer/96569

It's fine to use "nofollow" instead of "ugc", however "nofollow" is meant for links that are part of the website and just musn't be followed. The correct annotation for user-provided URLs is "ugc" instead.