Avoiding double escape of html
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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