Skip to content

Commit 3ab4886

Browse files
authored
fix(fmt): Correctly format hard breaks in markdown (denoland#9742)
1 parent 88a7fa3 commit 3ab4886

File tree

6 files changed

+18
-21
lines changed

6 files changed

+18
-21
lines changed

.dprintrc.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
"$schema": "https://dprint.dev/schemas/v0.json",
33
"projectType": "openSource",
44
"incremental": true,
5-
"lineWidth": 80,
6-
"indentWidth": 2,
75
"typescript": {
86
"deno": true
97
},
108
"markdown": {
11-
"textWrap": "always"
9+
"deno": true
10+
},
11+
"json": {
12+
"deno": true
1213
},
1314
"includes": ["**/*.{ts,tsx,js,jsx,json,md}"],
1415
"excludes": [
@@ -34,8 +35,8 @@
3435
"tools/wpt/manifest.json"
3536
],
3637
"plugins": [
37-
"https://plugins.dprint.dev/typescript-0.40.3.wasm",
38-
"https://plugins.dprint.dev/json-0.8.0.wasm",
39-
"https://plugins.dprint.dev/markdown-0.5.1.wasm"
38+
"https://plugins.dprint.dev/typescript-0.41.0.wasm",
39+
"https://plugins.dprint.dev/json-0.9.0.wasm",
40+
"https://plugins.dprint.dev/markdown-0.6.0.wasm"
4041
]
4142
}

Cargo.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ base64 = "0.13.0"
4444
byteorder = "1.4.2"
4545
clap = "2.33.3"
4646
dissimilar = "1.0.2"
47+
dprint-plugin-json = "0.9.0"
48+
dprint-plugin-markdown = "0.6.0"
4749
dprint-plugin-typescript = "0.41.0"
48-
dprint-plugin-markdown = "0.5.1"
49-
dprint-plugin-json = "0.8.0"
5050
encoding_rs = "0.8.28"
5151
env_logger = "0.8.2"
5252
filetime = "0.2.14"

cli/tools/fmt.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,7 @@ fn get_typescript_config(
316316
fn get_markdown_config() -> dprint_plugin_markdown::configuration::Configuration
317317
{
318318
dprint_plugin_markdown::configuration::ConfigurationBuilder::new()
319-
// Matches `.dprintrc.json` in the repository
320-
.text_wrap(dprint_plugin_markdown::configuration::TextWrap::Always)
321-
.ignore_directive("deno-fmt-ignore")
322-
.ignore_start_directive("deno-fmt-ignore-start")
323-
.ignore_end_directive("deno-fmt-ignore-end")
319+
.deno()
324320
.build()
325321
}
326322

docs/getting_started/webassembly.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Deno can execute [WebAssembly](https://webassembly.org/) modules with the same
44
interfaces that
55
[browsers provide](https://developer.mozilla.org/en-US/docs/WebAssembly).
66

7-
<!-- dprint-ignore -->
7+
<!-- deno-fmt-ignore -->
88

99
```ts
1010
const wasmCode = new Uint8Array([

docs/tools/script_installer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ idiom to specify the entry point in an executable script.
6767

6868
Example:
6969

70-
<!-- dprint-ignore -->
70+
<!-- deno-fmt-ignore -->
7171

7272
```ts
7373
// https://example.com/awesome/cli.ts

0 commit comments

Comments
 (0)