Repository navigation
Fix Markdown paste formatting inheritance - #3480
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ab825f99-539f-445e-a76f-2b56116ab33e
|
Julia Roldi (juliaroldi)
requested review from
Bryan Valverde U (BryanValverdeU) and
Jiuqing Song (JiuqingSong)
and removed request for
Bryan Valverde U (BryanValverdeU)
October 23, 2026 21:19
Julia Roldi (juliaroldi)
marked this pull request as ready for review
October 23, 2026 21:19
Julia Roldi (juliaroldi)
requested review from
Bryan Valverde U (BryanValverdeU),
flyingbee2012 and
Vi Nguyen (vinguyen12)
October 26, 2026 16:35
Jiuqing Song (JiuqingSong)
approved these changes
Oct 26, 2026
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.
Summary
Fix Markdown paste conversion to preserve heading tags and sizes, bold, italic, and strikethrough while inheriting target formatting such as font family and text color. Add an opt-in
preserveParagraphDecoratormerge option and include target paragraph decorator and segment formatting inmergeModel's inherited defaults. Enable Markdown paste auto-conversion in the demo and add regression coverage for all six heading levels, rendered heading sizes and colors, emphasis, and existing content.How to test
yarn eslint,yarn test:fast, andyarn b. All passed locally, including 6,523 tests. For focused coverage, runyarn test:fast --testPathPattern="mergeModelTest|MarkdownPastePluginTest".# Heading,## Subheading, andplain **bold** *italic* ~~strike~~. Auto-conversion is enabled by default. Before this fix, target formatting could override Markdown emphasis and heading sizes; after this fix, headings retain their tags and relative sizes, Markdown emphasis is preserved, and the content inherits the target font family and color.