mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #36] [MERGED] Adding support for rel=nofollow in links #777
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/36
Author: @synhershko
Created: 7/9/2016
Status: ✅ Merged
Merged: 7/10/2016
Merged by: @xoofx
Base:
master← Head:norel-links📝 Commits (5)
05a2764Adding support for rel=nofollow in links673f4a4Avoid adding rel to images5400b30Fixing for renderer.EnableHtmlForInline case9a97428Fixing last bits64d81edRemoving config📊 Changes
4 files changed (+69 additions, -0 deletions)
View changed files
➕
src/Markdig/Extensions/NoRefLinks/NoFollowLinksExtension.cs(+34 -0)📝
src/Markdig/MarkdownExtensions.cs(+15 -0)📝
src/Markdig/Renderers/Html/Inlines/AutolinkInlineRenderer.cs(+11 -0)📝
src/Markdig/Renderers/Html/Inlines/LinkInlineRenderer.cs(+9 -0)📄 Description
This PR adds support for automatically adding rel=nofollow to HTML links - this in many times is desired (if not necessary) especially when allowing content that is not necessarily trusted to be published.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.