[PR #197] [MERGED] Convert relative URLs to absolute #858

Closed
opened 2026-01-29 14:46:30 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/197
Author: @markheath
Created: 1/17/2018
Status: Merged
Merged: 1/17/2018
Merged by: @xoofx

Base: masterHead: relative-urls


📝 Commits (1)

  • 96c4690 HTML renderer supports converting relative URLs on links and images to absolute #143

📊 Changes

3 files changed (+59 additions, -0 deletions)

View changed files

📝 src/Markdig.Tests/Markdig.Tests.csproj (+1 -0)
src/Markdig.Tests/TestRelativeUrlReplacement.cs (+48 -0)
📝 src/Markdig/Renderers/HtmlRenderer.cs (+10 -0)

📄 Description

HTML renderer supports converting relative URLs on links and images to absolute #143

Doesn't touch links inside HTML blocks, just markdown defined blocks

Added a few basic unit tests.


🔄 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/197 **Author:** [@markheath](https://github.com/markheath) **Created:** 1/17/2018 **Status:** ✅ Merged **Merged:** 1/17/2018 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `relative-urls` --- ### 📝 Commits (1) - [`96c4690`](https://github.com/xoofx/markdig/commit/96c469018eac1445ee8629563851b0fb415b128c) HTML renderer supports converting relative URLs on links and images to absolute #143 ### 📊 Changes **3 files changed** (+59 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/Markdig.Tests.csproj` (+1 -0) ➕ `src/Markdig.Tests/TestRelativeUrlReplacement.cs` (+48 -0) 📝 `src/Markdig/Renderers/HtmlRenderer.cs` (+10 -0) </details> ### 📄 Description HTML renderer supports converting relative URLs on links and images to absolute #143 Doesn't touch links inside HTML blocks, just markdown defined blocks Added a few basic unit tests. --- <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:46:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#858