StackExchange / StackExchange/Stacks-Editor
bug(rich-text) Html comment at top translates into blue bar displayed across width of RT mode
Open
Nobody has claimed this yet.
bug
good first issue
mode - rich text
- Dominant language
- TypeScript
- Stars
- 437
- Forks
- 61
- Avg merge
- 16h 2m
- Merged PRs (30d)
- 8
Description
To Reproduce
- Add text in MD mode
<!-- a comment -->
paragraph
- Switch to RT, observe the blue bar
Expected behavior
No blue bar in RT mode for an html comment
Screenshots

Desktop (please complete the following information):
Windows 11 Chrome 103
Additional context
https://meta.stackexchange.com/a/380409/51
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
Start by reproducing the issue in the editor: add an HTML comment and paragraph in Markdown mode, then switch to Rich Text mode and observe the blue bar. Trace the Markdown-to-Rich-Text handling for HTML comments; done means the comment remains hidden and no blue bar spans the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, markdown, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100