StackExchange / StackExchange/Stacks-Editor

Block node commands misbehaving inside nested block nodes

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug mode - markdown
Dominant language
TypeScript
Stars
437
Forks
61
Avg merge
16h 2m
Merged PRs (30d)
8

Description

Reported on Meta.SE

Describe the bug

In Rich Text mode, type some text, click the Blockquote button, then click Bulleted list:

enter image description here

Now when I click the Blockquote button again, I expect the blockquote to disappear (the gray outline indicates it's some kind of toggle, right)? Nope, it's the bulleted list that disappears:

enter image description here

(In Markdown mode, the bulleted list replaces the blockquote formatting, which is OK behaviour IMHO; especially, the buttons don't have a gray outline.)

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

Reproduce the nested blockquote and bulleted-list steps in Rich Text mode, then trace the block node command handling from the editor entry point. Confirm that toggling Blockquote removes only the blockquote while preserving the list, and verify that Markdown mode keeps its current behavior.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.