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

Add test cases about code embedding in markdown that relates to #15909 #15985

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

seiyab
Copy link
Sponsor Contributor

@seiyab seiyab commented Jan 25, 2024

#15909 (comment)
Now I'm sure that every diff shown in prettier/prettier-regression-testing#435 (comment) is bug fix.

Description

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@seiyab seiyab mentioned this pull request Jan 25, 2024
4 tasks
@fisker
Copy link
Member

fisker commented Jan 26, 2024

Can you put these code blocks in separate files and make them "ugly" first?

@seiyab
Copy link
Sponsor Contributor Author

seiyab commented Jan 26, 2024

OK. Does "making them ugly" mean make inputs ugly keeping AST? Or emphasize bug in output tweaking AST?

@fisker
Copy link
Member

fisker commented Jan 26, 2024

"making them ugly"

You can just put two extra lines on top, since we silently fail on embed format, it's not clear the code block is formatted or not.

@seiyab
Copy link
Sponsor Contributor Author

seiyab commented Jan 26, 2024

@fisker
I splitted and uglified them.

@fisker fisker merged commit b267831 into prettier:main Jan 26, 2024
28 checks passed
@fisker
Copy link
Member

fisker commented Jan 26, 2024

Great! Thank you!

@seiyab seiyab deleted the add-tests-for-embedded-code-in-markdown branch January 26, 2024 12:15
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 18, 2024
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