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

Playground: show preprocessed AST #13606

Merged
merged 15 commits into from
Oct 10, 2022
Merged

Playground: show preprocessed AST #13606

merged 15 commits into from
Oct 10, 2022

Conversation

thorn0
Copy link
Member

@thorn0 thorn0 commented Oct 9, 2022

Description

This can be especially useful for the Markdown printer as its preprocessing is really complex. HTML is interesting too.

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

src/main/core.js Outdated Show resolved Hide resolved
prettier.__debug.parse($$$input, options, ${JSON.stringify(massage)});
prettier.__debug.parse($$$input, options, ${JSON.stringify(
devOptions
)});
`,
{ $$$input: input, $$$options: options, ...sandbox }
Copy link
Member

Choose a reason for hiding this comment

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

Let's pass devOptions as $$$devOptions like other arguments.

@thorn0 thorn0 merged commit effe30a into prettier:next Oct 10, 2022
@thorn0 thorn0 deleted the preprint-ast branch October 10, 2022 11:26
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 5, 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.

None yet

2 participants