-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(utilities): markedSetNofollowLinks with hostname check (#492)
Needed to solve apify/apify-core#18466. Now the `rel="noopener noreferrer nofollow" target="_blank"` is added only if url is outside from `apify.com` domain. This enable passing hostname to `markedSetNofollowLinks` function and setting `rel="noopener noreferrer" target="_blank"` for apify domain but different hostname. Once this is merged, next step would be to pass hostname from `safeMarkdown` in console/frontend down to `markedSetNofollowLinks`
- Loading branch information
Showing
2 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters