[PR #341] [MERGED] Add customizable media link; handle protocol-less media #960

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/341
Author: @OpportunityLiu
Created: 5/14/2019
Status: Merged
Merged: 1/15/2020
Merged by: @xoofx

Base: masterHead: master


📝 Commits (10+)

📊 Changes

9 files changed (+323 additions, -136 deletions)

View changed files

📝 changelog.md (+3 -0)
📝 src/Markdig.Tests/Specs/AbbreviationSpecs.generated.cs (+1 -1)
📝 src/Markdig.Tests/Specs/MediaSpecs.generated.cs (+11 -11)
📝 src/Markdig.Tests/Specs/MediaSpecs.md (+9 -9)
src/Markdig.Tests/TestMediaLinks.cs (+87 -0)
src/Markdig/Extensions/MediaLinks/HostProviderBuilder.cs (+137 -0)
src/Markdig/Extensions/MediaLinks/IHostProvider.cs (+36 -0)
📝 src/Markdig/Extensions/MediaLinks/MediaLinkExtension.cs (+35 -115)
📝 src/Markdig/Extensions/MediaLinks/MediaOptions.cs (+4 -0)

📄 Description

#337
A new interface IHostProvider is added for media link customization.


🔄 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/341 **Author:** [@OpportunityLiu](https://github.com/OpportunityLiu) **Created:** 5/14/2019 **Status:** ✅ Merged **Merged:** 1/15/2020 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`0fe5c17`](https://github.com/xoofx/markdig/commit/0fe5c17a933d49ed26382fedab60130c16347c40) Add customizable media link - [`1d6a464`](https://github.com/xoofx/markdig/commit/1d6a464c5d22c8cc6a1c6230e198b14af49e0a84) add unit test - [`bb3a4f3`](https://github.com/xoofx/markdig/commit/bb3a4f372c44043c6f6d0bf0c4a9ee6c7105daec) add change log - [`ca51967`](https://github.com/xoofx/markdig/commit/ca51967fb18093d33aa41477cc4b7d87c7f41b74) fix #135 - [`a1e1991`](https://github.com/xoofx/markdig/commit/a1e19912a96dc0881ea7aebb5de97ea153ffe1ce) update changelog - [`64cd8ec`](https://github.com/xoofx/markdig/commit/64cd8ec262d96860aac268697e503507912c568b) customize iframe class of each provider - [`8886b48`](https://github.com/xoofx/markdig/commit/8886b48634df79cd351316593a9d30cac9108e18) add tests - [`890b2cd`](https://github.com/xoofx/markdig/commit/890b2cda2a1db7292996984901d5113401d30082) Update MediaLinkExtension.cs - [`4d172bf`](https://github.com/xoofx/markdig/commit/4d172bf905fd438f7630fe2df80bab1a6748ff2f) Merge branch 'master' into master - [`89b2865`](https://github.com/xoofx/markdig/commit/89b28659b1ce08748675db778703db2990aa8e45) Update src/Markdig/Extensions/MediaLinks/HostProviderBuilder.cs ### 📊 Changes **9 files changed** (+323 additions, -136 deletions) <details> <summary>View changed files</summary> 📝 `changelog.md` (+3 -0) 📝 `src/Markdig.Tests/Specs/AbbreviationSpecs.generated.cs` (+1 -1) 📝 `src/Markdig.Tests/Specs/MediaSpecs.generated.cs` (+11 -11) 📝 `src/Markdig.Tests/Specs/MediaSpecs.md` (+9 -9) ➕ `src/Markdig.Tests/TestMediaLinks.cs` (+87 -0) ➕ `src/Markdig/Extensions/MediaLinks/HostProviderBuilder.cs` (+137 -0) ➕ `src/Markdig/Extensions/MediaLinks/IHostProvider.cs` (+36 -0) 📝 `src/Markdig/Extensions/MediaLinks/MediaLinkExtension.cs` (+35 -115) 📝 `src/Markdig/Extensions/MediaLinks/MediaOptions.cs` (+4 -0) </details> ### 📄 Description #337 A new interface `IHostProvider` is added for media link customization. --- <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:47:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#960