StackExchange / StackExchange/Stacks-Editor
Blockquotes in markdown mode should always wrap/unwrap selected content
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 437
- Forks
- 61
- Avg merge
- 16h 2m
- Merged PRs (30d)
- 8
Description
Reported on Meta.SE here.
Describe the bug
Lists are removed when quoted when in markdown mode and the blockquote menu button is clicked.
Expected behavior
The content should be wrapped instead of the block type being replaced. In most cases, replacing the block type is beneficial (unordered list -> ordered list), but in the majority of cases that blockquote is used, the user wants to quote the entire selected text as-is.
To Reproduce
Demo:

Desktop (please complete the following information):
- OS: Windows 7 SP1 x64 Ultimate
- Browser chrome
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 linked demo in markdown mode with selected list content, then trace the blockquote menu handling for the selected blocks. Done means applying blockquote wrapping preserves the selected content, including lists, instead of replacing its block type.
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