xoofx / xoofx/markdig

Avoiding double escape of html

Open
#712 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
C#
Stars
5.3k
Forks
510
Avg merge
8d 5h
Merged PRs (30d)
5

Description

I am having trouble figuring out how to disable escaping of certain characters.

Example: https://dotnetfiddle.net/Jx9koN

It is being replaced in WriteEscapeSlow with no way to turn if off.

What would be the correct approach to fix it?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the escaping behavior from the linked .NET Fiddle, then inspect WriteEscapeSlow in src/Markdig/Renderers/HtmlRenderer.cs at the referenced lines. Clarify which characters should remain unescaped and whether the behavior should be configurable; done means the expected HTML output is established and the escaping path supports it without double escaping.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.