Skip to content

Add auto markdown conversion source#3392

Merged
JiuqingSong merged 3 commits into
microsoft:masterfrom
haven2world:haowchen/create-auto-markdown-callback
Jul 2, 2026
Merged

Add auto markdown conversion source#3392
JiuqingSong merged 3 commits into
microsoft:masterfrom
haven2world:haowchen/create-auto-markdown-callback

Conversation

@haven2world

@haven2world haven2world commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Add ChangeSource.AutoMarkdownConversion and use it when MarkdownPastePlugin applies automatic markdown conversion after paste. This gives adapters and plugins a specific content changed source for the automatic conversion while keeping explicit Paste as Markdown behavior unchanged.

The Markdown paste plugin tests now verify that auto conversion calls formatContentModel with the dedicated change source.

How to test

  1. yarn test:fast --testPathPattern=MarkdownPastePluginTest

@haven2world haven2world changed the title Add auto markdown conversion callback Add auto markdown conversion source Jul 2, 2026
@JiuqingSong JiuqingSong merged commit 8475e5f into microsoft:master Jul 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants