You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Preserve empty lines in front matter ([#16347](https://github.com/prettier/prettier/pull/16347) by [@fisker](https://github.com/fisker))
6
+
7
+
<!-- prettier-ignore -->
8
+
```markdown
9
+
<!-- Input -->
10
+
---
11
+
foo:
12
+
- bar1
13
+
14
+
- bar2
15
+
16
+
- bar3
17
+
---
18
+
Markdown
19
+
20
+
<!-- Prettier 3.3.0 -->
21
+
22
+
---
23
+
foo:
24
+
- bar1
25
+
- bar2
26
+
- bar3
27
+
---
28
+
29
+
Markdown
30
+
31
+
32
+
<!-- Prettier 3.3.1 -->
33
+
---
34
+
foo:
35
+
- bar1
36
+
37
+
- bar2
38
+
39
+
- bar3
40
+
---
41
+
42
+
Markdown
43
+
```
44
+
45
+
#### Preserve explicit language in front matter ([#16348](https://github.com/prettier/prettier/pull/16348) by [@fisker](https://github.com/fisker))
46
+
47
+
<!-- prettier-ignore -->
48
+
```markdown
49
+
<!-- Input -->
50
+
---yaml
51
+
title: Hello
52
+
slug: home
53
+
---
54
+
55
+
<!-- Prettier 3.3.0 -->
56
+
---
57
+
title: Hello
58
+
slug: home
59
+
---
60
+
61
+
<!-- Prettier 3.3.1 -->
62
+
---yaml
63
+
title: Hello
64
+
slug: home
65
+
---
66
+
```
67
+
68
+
#### Avoid line breaks in import attributes ([#16349](https://github.com/prettier/prettier/pull/16349) by [@fisker](https://github.com/fisker))
69
+
70
+
<!-- prettier-ignore -->
71
+
```jsx
72
+
// Input
73
+
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };
74
+
75
+
// Prettier 3.3.0
76
+
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type:
77
+
"json" };
78
+
79
+
// Prettier 3.3.1
80
+
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };
Copy file name to clipboardExpand all lines: docs/browser.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Required options:
18
18
19
19
-**[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use.
20
20
21
-
-**`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].0/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
21
+
-**`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].1/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
22
22
23
23
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-stable/browser.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Required options:
19
19
20
20
-**[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use.
21
21
22
-
-**`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].0/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
22
+
-**`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].1/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
23
23
24
24
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
0 commit comments