[PR #36] [MERGED] Adding support for rel=nofollow in links #777

Open
opened 2026-01-29 14:45:23 +00:00 by claunia · 0 comments
Owner

📋 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: masterHead: norel-links


📝 Commits (5)

  • 05a2764 Adding support for rel=nofollow in links
  • 673f4a4 Avoid adding rel to images
  • 5400b30 Fixing for renderer.EnableHtmlForInline case
  • 9a97428 Fixing last bits
  • 64d81ed Removing 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.

## 📋 Pull Request Information **Original PR:** https://github.com/xoofx/markdig/pull/36 **Author:** [@synhershko](https://github.com/synhershko) **Created:** 7/9/2016 **Status:** ✅ Merged **Merged:** 7/10/2016 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `norel-links` --- ### 📝 Commits (5) - [`05a2764`](https://github.com/xoofx/markdig/commit/05a27649aaf5ca9f927aa715ea49b6e9d541c833) Adding support for rel=nofollow in links - [`673f4a4`](https://github.com/xoofx/markdig/commit/673f4a4beb71821db74f3057f196820b526b0a9f) Avoid adding rel to images - [`5400b30`](https://github.com/xoofx/markdig/commit/5400b30a90e6857080f6a6463a21fc14d9f9a880) Fixing for renderer.EnableHtmlForInline case - [`9a97428`](https://github.com/xoofx/markdig/commit/9a9742888b33057c244453ef5afa624414b2ce48) Fixing last bits - [`64d81ed`](https://github.com/xoofx/markdig/commit/64d81ed47b3690c4a7b0cc62dc661b4339604a5c) Removing config ### 📊 Changes **4 files changed** (+69 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 14:45:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#777