Only closing tag formatted when element has no content

Open
#11 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, html
Domain
tooling

Research direction

Start by reproducing the report with HtmlFormatter().GetHtmlString(code, Languages.Html), using the C# example and the attached image as the available context. Trace how an HTML element with no content is formatted; done means the complete element, including its opening and closing tags, is formatted correctly rather than only the closing tag.

Written by the indexing model from the issue text.

Description

help wanted

image

return new HtmlFormatter().GetHtmlString(code, Languages.Html);
Dominant language
C#
Stars
267
Forks
58
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from CommunityToolkit/ColorCode-Universal

All issues in CommunityToolkit/ColorCode-Universal

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.