[PR #502] [MERGED] Fix CodeInline to plain text incorrect escape #1064

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/502
Author: @yufeih
Created: 1/12/2021
Status: Merged
Merged: 1/14/2021
Merged by: @xoofx

Base: masterHead: code-inline-plain-text


📝 Commits (1)

  • a8ec3c1 Fix CodeInline to plain text incorrect escape

📊 Changes

2 files changed (+9 additions, -1 deletions)

View changed files

📝 src/Markdig.Tests/TestPlainText.cs (+1 -0)
📝 src/Markdig/Renderers/Html/Inlines/CodeInlineRenderer.cs (+8 -1)

📄 Description

Fixes #495

This PR fixes CodeInlineRenderer the same way as LiteralInlineRenderer by checking EnableHtmlEscape and call different methods accordingly.


🔄 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/502 **Author:** [@yufeih](https://github.com/yufeih) **Created:** 1/12/2021 **Status:** ✅ Merged **Merged:** 1/14/2021 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `code-inline-plain-text` --- ### 📝 Commits (1) - [`a8ec3c1`](https://github.com/xoofx/markdig/commit/a8ec3c1a48d9b0fa66e2af0a63b87fe00f629199) Fix CodeInline to plain text incorrect escape ### 📊 Changes **2 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestPlainText.cs` (+1 -0) 📝 `src/Markdig/Renderers/Html/Inlines/CodeInlineRenderer.cs` (+8 -1) </details> ### 📄 Description Fixes #495 This PR fixes `CodeInlineRenderer` the same way as [LiteralInlineRenderer](https://github.com/xoofx/markdig/blob/master/src/Markdig/Renderers/Html/Inlines/LiteralInlineRenderer.cs) by checking `EnableHtmlEscape` and call different methods accordingly. --- <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:49:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1064