StackExchange / StackExchange/Stacks-Editor

Blockquotes in markdown mode should always wrap/unwrap selected content

Open
#70 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue mode - markdown
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:

SE editor list disappears

Desktop (please complete the following information):

  • OS: Windows 7 SP1 x64 Ultimate
  • Browser chrome

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.