[PR #723] [MERGED] Add relative path support for Audio and Video Urls to MediaLinks Extension #1195

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/723
Author: @RickStrahl
Created: 7/11/2023
Status: Merged
Merged: 8/4/2023
Merged by: @xoofx

Base: masterHead: MediaExtensions-RelativePathSupport


📝 Commits (3)

  • bfe3800 Allow for use of .NET 7.0 SDK (Major Version Roll Forward)
  • 81bc58c Add support for relative Urls for Video and Audio links.
  • 3d29430 Update src/Markdig/Extensions/MediaLinks/MediaLinkExtension.cs

📊 Changes

3 files changed (+34 additions, -16 deletions)

View changed files

📝 src/Markdig.Tests/TestMediaLinks.cs (+10 -0)
📝 src/Markdig/Extensions/MediaLinks/MediaLinkExtension.cs (+23 -15)
📝 src/global.json (+1 -1)

📄 Description

Allow detect and embed relative URLs for image tag usage of audio and video links. Relates to #715.

Updated linking looks like this:

image

Note relative links now work picking up media files out of the current folder as well as online links.


🔄 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/723 **Author:** [@RickStrahl](https://github.com/RickStrahl) **Created:** 7/11/2023 **Status:** ✅ Merged **Merged:** 8/4/2023 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `MediaExtensions-RelativePathSupport` --- ### 📝 Commits (3) - [`bfe3800`](https://github.com/xoofx/markdig/commit/bfe38001305701bfd56e6aacf5ec8fd89fc08958) Allow for use of .NET 7.0 SDK (Major Version Roll Forward) - [`81bc58c`](https://github.com/xoofx/markdig/commit/81bc58c6c927fc5409e610ec8dd7dbf5ee9108f3) Add support for relative Urls for Video and Audio links. - [`3d29430`](https://github.com/xoofx/markdig/commit/3d29430337ff9dbe4b47a4fd508f7ef047127dac) Update src/Markdig/Extensions/MediaLinks/MediaLinkExtension.cs ### 📊 Changes **3 files changed** (+34 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestMediaLinks.cs` (+10 -0) 📝 `src/Markdig/Extensions/MediaLinks/MediaLinkExtension.cs` (+23 -15) 📝 `src/global.json` (+1 -1) </details> ### 📄 Description Allow detect and embed relative URLs for image tag usage of audio and video links. Relates to #715. Updated linking looks like this: ![image](https://github.com/xoofx/markdig/assets/1374013/9e91a948-ba90-4d89-8af4-124a9961e8d6) Note relative links now work picking up media files out of the current folder as well as online links. --- <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:51:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1195