Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links are not automatically pasted as Markdown link if nothing is selected #189338

Merged

Conversation

MeghanKulkarni
Copy link
Contributor

If nothing (or whitespace or new lines) is selected, the link will paste as plain text: #188871

However, if a markdown link is selected, the link will be pasted as a markdown link with a default 'Title.' I will change this so that plain text is pasted.

@MeghanKulkarni MeghanKulkarni added this to the August 2023 milestone Jul 31, 2023
@MeghanKulkarni MeghanKulkarni self-assigned this Jul 31, 2023
});

test('Should evaluate pasteAsMarkdownLink as false for selected whitespace and new lines', () => {
skinnyDocument.getText = function () { return ' \r\n\r\n'; };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a future pr, try to move off of setting methods like this. Instead create a new instance of a document for each tests case

@MeghanKulkarni MeghanKulkarni merged commit f7d59ef into microsoft:main Jul 31, 2023
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants