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

Unstable autolink format after #8630 #8654

Open
fisker opened this issue Jun 28, 2020 · 0 comments
Open

Unstable autolink format after #8630 #8654

fisker opened this issue Jun 28, 2020 · 0 comments
Labels
lang:markdown Issues affecting Markdown type:bug Issues identifying ugly output, or a defect in the program

Comments

@fisker
Copy link
Member

fisker commented Jun 28, 2020

Prettier pr-8140
Playground link

--parser markdown

Input:

*_http://www.example.com:80/_a_*

Output:

__http://www.example.com:80/_a__

Second Output:

**http://www.example.com:80/_a**

Expected behavior:

Should be stable

More failed tests

// (url) => `__${url}__`,
// (url) => `**${url}**`,
// (url) => `*_${url}_*`,
// (url) => `_*${url}*_`,
// (url) => `*_${url}*_`,
// (url) => `_*${url}_*`,
(url) => `_ ${url}_`,
(url) => `* ${url}*`,
(url) => `_ ${url}*`,
(url) => `* ${url}_`,
// (url) => `__ ${url}__`,
// (url) => `** ${url}**`,
// (url) => `*_ ${url}_*`,
// (url) => `_* ${url}*_`,
// (url) => `*_ ${url}*_`,
// (url) => `_* ${url}_*`,
(url) => `_${url} _`,
(url) => `*${url} *`,
(url) => `_${url} *`,
(url) => `*${url} _`,
// (url) => `__${url} __`,
// (url) => `**${url} **`,
// (url) => `*_${url} _*`,
// (url) => `_*${url} *_`,
// (url) => `*_${url} *_`,
// (url) => `_*${url} _*`,
(url) => `_ ${url} _`,
(url) => `* ${url} *`,
(url) => `_ ${url} *`,
(url) => `* ${url} _`,
// (url) => `__ ${url} __`,
// (url) => `** ${url} **`,
// (url) => `*_ ${url} _*`,
// (url) => `_* ${url} *_`,
// (url) => `*_ ${url} *_`,
// (url) => `_* ${url} _*`,

https://github.com/prettier/prettier/runs/730525149#step:6:3911

@fisker fisker added type:bug Issues identifying ugly output, or a defect in the program lang:markdown Issues affecting Markdown labels Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:markdown Issues affecting Markdown type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

No branches or pull requests

1 participant