microsoft / microsoft/PowerToys
Documentation discrepancy: MarkdownContent class claims property for HTML rendering but missing in actual implementation; request for HTML content support
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
### Describe the requested doc changes
I am developing a plugin for Command Palette and need to display HTML content in the results. According to the SDK documentation (see attached screenshot), the MarkdownContent class is described as having properties to specify the markdown body and whether it should be rendered as HTML. However, when I inspect the actual class in the SDK, it only contains a Body property of type string; there is no property to control HTML rendering.
This discrepancy makes it unclear how to achieve HTML rendering in Command Palette items. I have not found any other class in the documentation that supports direct HTML content.
Could you please clarify:
Is there a way to display HTML content in a Command Palette item using the current SDK? If so, which class or approach should be used?
If HTML content is not currently supported, are there plans to add such functionality in the future (e.g., a dedicated HtmlContent class or an additional property on MarkdownContent)?
My use case requires rendering rich formatted text that goes beyond basic Markdown (e.g., tables, custom styling). Having HTML support would greatly enhance plugin capabilities.
Thank you for your attention to this matter.
Contributor guide
Research direction
Start by comparing the SDK documentation's MarkdownContent property description with the actual MarkdownContent class. Determine whether the current SDK supports HTML in Command Palette items; done means documenting the supported approach or correcting the documentation and clearly recording any unsupported functionality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, markdown
- Domain
- desktop, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100