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

/* YAML */ comment in js not working #6174

Open
JounQin opened this issue Jun 4, 2019 · 0 comments
Open

/* YAML */ comment in js not working #6174

JounQin opened this issue Jun 4, 2019 · 0 comments

Comments

@JounQin
Copy link
Contributor

@JounQin JounQin commented Jun 4, 2019

Prettier 1.17.1
Playground link

--parser flow

Input:

const html = /* HTML */ `<div><p>Test Content</p></div>`

const yaml = /* YAML */ `apiVersion: v1
kind: Pod
metadata:
  name:    frontend
  containers:
    -  image: mysql`

Output:

const html = /* HTML */ `
  <div><p>Test Content</p></div>
`;

const yaml = /* YAML */ `apiVersion: v1
kind: Pod
metadata:
  name:    frontend
  containers:
    -  image: mysql`;

Expected behavior:
Format YAML like HTML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.