[PR #826] [MERGED] Fix extra line feeds in link title #1235

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/826
Author: @snnz
Created: 11/21/2024
Status: Merged
Merged: 11/24/2024
Merged by: @xoofx

Base: masterHead: fix-extra-lfs


📝 Commits (2)

📊 Changes

2 files changed (+10 additions, -0 deletions)

View changed files

📝 src/Markdig.Tests/TestLinkHelper.cs (+8 -0)
📝 src/Markdig/Helpers/LinkHelper.cs (+2 -0)

📄 Description

Extra line feeds appear in the parsed link titles containing Windows-style line breaks, because \n that is peeked after \r is not skipped.


🔄 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/826 **Author:** [@snnz](https://github.com/snnz) **Created:** 11/21/2024 **Status:** ✅ Merged **Merged:** 11/24/2024 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `fix-extra-lfs` --- ### 📝 Commits (2) - [`7abce6d`](https://github.com/xoofx/markdig/commit/7abce6d0b4d597e3c1caeb6a2e7df9b365d28769) Fix extra line feeds in link title - [`66ef8f1`](https://github.com/xoofx/markdig/commit/66ef8f12010a2fcf2a313c181ac9a4e14cb3ac6b) Test added. ### 📊 Changes **2 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestLinkHelper.cs` (+8 -0) 📝 `src/Markdig/Helpers/LinkHelper.cs` (+2 -0) </details> ### 📄 Description Extra line feeds appear in the parsed link titles containing Windows-style line breaks, because \n that is peeked after \r is not skipped. --- <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:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1235