StackExchange / StackExchange/Stacks-Editor
bug(markdown) removing block quote on fenced code section doesnt remove blockquotes on fence lines
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 437
- Forks
- 61
- Avg merge
- 16h 2m
- Merged PRs (30d)
- 8
Description
Describe the bug
In MD, when removing a block quote from a fenced code section, it only removes the opening > chars from the content lines, but not from the code fence lines.
Works fine in RT mode.
To Reproduce
Steps to reproduce the behavior:
- Go to MD, add in this content:
```
Some code
```
- select all,
ctrl-qto apply blockquote,ctrl-qto remove blockquote - Now looks like this
>```
Some code
>```
Expected behavior
Should look like this:
```
Some code
```
Desktop (please complete the following information):
Windows 11 Chrome 103
Additional context
https://meta.stackexchange.com/a/380331/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
Reproduce this in the Markdown editor using a fenced code block, select all, and press ctrl-q twice. Trace the blockquote-removal entry point for Markdown and verify that the opening and closing fence lines lose their > prefixes along with the content lines; done when the result matches the expected unquoted fence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100