Repository navigation
Conversation
…losing block quote Typing a heading or list marker at the start of an existing quote replaced the QuoteNode with the new block, silently dropping the quote. A QuoteNode holds inline content, so there is nowhere to nest the new block; import already declines and leaves the marker as literal text inside the quote, and the shortcut now agrees. The heading transformer and listReplace both refuse to consume a QuoteNode when running as a shortcut (import is unchanged).
LeSingh1
requested review from
acywatson,
etrepum,
fantactuka,
ivailop7,
potatowagon and
zurfyx
as code owners
August 7, 2026 11:03
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Typing
#,##,-or1.at the start of an existing block quote replaced theQuoteNodewith the new block, silently discarding the quote. The>and```shortcuts were already safe; heading and list shortcuts were not. That is broader than the report, which only mentions headings.A
QuoteNodeholds inline content, so there is nowhere to nest the new block — exporting a heading nested in a quote loses the level (> H2). Import already declines:$convertFromMarkdownString('> # x')keeps the quote and leaves# xas literal text. The shortcut now agrees rather than dropping the quote out from under the caret. This mirrors the guardlistReplacealready has forHeadingNode.Import is untouched (the check is gated on
!isImport); only the typed-shortcut path changes.Adds 7 tests over
#,##,######,1.,-,*,+.If you would rather the marker actually take effect inside the quote,
@lexical/mdastalready supports that tree shape and I have a companion change for its shortcuts — happy to send it if this direction is wrong.Fixes #7407