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

Support html parser #43

Open
seeARMS opened this issue Jan 12, 2020 · 1 comment
Open

Support html parser #43

seeARMS opened this issue Jan 12, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@seeARMS
Copy link

seeARMS commented Jan 12, 2020

Need to use HTML parser to format HTML files: prettier/prettier#1882 (comment)

Currently only babylon and flow are supported parsers for coc-prettier

@chemzqm chemzqm added the help wanted Extra attention is needed label Jan 13, 2020
@mblarsen
Copy link

What needs to be done to support the html-parser. The vetur plugin has something like:

vetur.format.defaultFormatter.css
vetur.format.defaultFormatter.js
vetur.format.defaultFormatter.html
.. and so on

Are you thinking something in lines of that?

prettier.parser = whatever the default is
prettier.parserOverride.html = html

and maybe from tailwind:

tailwindCSS.htmlLanguages = [
  html,
  blade,
  ejs
]

Just thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants