There's a lot of demand for vue sfc (#2097). This introduces partial support for them: all the html is printed as is, except for the script and style tags which are printed using prettier. I believe that this should cover a lot of the use cases while being simple to support and if we want we can extend to more in the future. I copy pasted the html parser used by vue (it's just a single 400 lines file) so that we don't run the chancesof conflicts. I'm also very conservative: I only print the style and script at the top level and for the lang attributes we support. I expect this to be landable as is and provide value, review welcome :)
28 lines
961 B
YAML
28 lines
961 B
YAML
- name: JavaScript
|
|
image: "/images/languages/js-128px.png"
|
|
variants:
|
|
- "[ES2017](https://github.com/tc39/proposals/blob/master/finished-proposals.md)"
|
|
- "[JSX](https://facebook.github.io/jsx/)"
|
|
- "[Flow](https://flow.org/)"
|
|
- "[TypeScript](https://www.typescriptlang.org/)"
|
|
- "[Vue](https://vuejs.org/)"
|
|
- "[JSON](http://json.org/)"
|
|
- name: CSS
|
|
image: "/images/languages/css-128px.png"
|
|
variants:
|
|
- "CSS3+"
|
|
- "[Less](http://lesscss.org/)"
|
|
- "[SCSS](http://sass-lang.com)"
|
|
- "[styled-components](http://styled-components.com) 💅"
|
|
- "[styled-jsx](http://npmjs.com/styled-jsx)"
|
|
- name: GraphQL
|
|
image: "/images/languages/graphql-128px.png"
|
|
variants:
|
|
- "[GraphQL](http://graphql.org/)"
|
|
- "[GraphQL Schemas](http://graphql.org/learn/schema/)"
|
|
- name: Markdown
|
|
image: "/images/languages/markdown-128px.png"
|
|
variants:
|
|
- "[CommonMark](http://commonmark.org/)"
|
|
- "[GitHub Flavored Markdown](https://github.github.com/gfm/)"
|