StackExchange / StackExchange/Stacks-Editor
Paste list item, if items begins with bold text, bold will be incorrectly maintained on rest of text in item and sub-items
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 437
- Forks
- 61
- Avg merge
- 16h 2m
- Merged PRs (30d)
- 8
Description
Describe the bug
When pasting a list that contains list-items that begin with bold text, the bold will continue for the rest of the list item (and next level of sub-items), even if the source data does not have bold continuing. This only happens for bold, not for italics.
To Reproduce
Steps to reproduce the behavior:
- Go to this doc
- Select all,
ctrl-c - Go to the editor, clear it,
ctrl-v
Expected behavior
List item formats will be reproduced faithfully
Screenshots
Here is what happens. Highlighted items are the ones that are not pasted properly. Source data is on the right.

Desktop:
- OS: Windows 11
- Browser: Chrome
- Version: 100
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 paste from the linked Google Doc in the linked Stacks Editor using Chrome, then compare bold formatting in list items and sub-items with the source. Done means pasted list formatting matches the source, without bold continuing where it should stop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100