gutterpress 0.10.10 → 0.10.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -143,7 +143,7 @@ import {
143
143
  syncProject,
144
144
  testRemoteAccess,
145
145
  validateProjectExtensions
146
- } from "./index-xs2g04p2.js";
146
+ } from "./index-03cqyyyk.js";
147
147
  import {
148
148
  BUILD_DIAGNOSTIC_CODES
149
149
  } from "./index-a0e2253t.js";
@@ -0,0 +1,7 @@
1
+ import type { CheckContext } from "../checks/types";
2
+ /**
3
+ * Rewrite every markdown file in `ctx` whose markdownlint violations have a
4
+ * mechanical fix. Returns the absolute paths actually written, and prints
5
+ * them, so the write is never invisible.
6
+ */
7
+ export declare function applyMarkdownlintFixes(ctx: CheckContext): Promise<string[]>;
@@ -37,6 +37,12 @@ export interface ValidationExecutionArgs {
37
37
  * Problems panel) leaves this unset and gets the manifest's own setting.
38
38
  */
39
39
  skipStylelint?: boolean;
40
+ /**
41
+ * Apply markdownlint's auto-fixes to the source markdown, in place, before
42
+ * the checks run (#275 — `gutterpress validate --fix`). Opt-in only: every
43
+ * other caller leaves it unset and validation stays entirely read-only.
44
+ */
45
+ fix?: boolean;
40
46
  }
41
47
  export interface ValidationExecutionResult {
42
48
  config: ResolvedConfig;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  MANIFEST_FILENAMES,
3
3
  runLint
4
- } from "./cli-jcemen7j.js";
4
+ } from "./cli-hz44te1m.js";
5
5
  import {
6
6
  log
7
- } from "./cli-4vyra9eq.js";
7
+ } from "./cli-36r50yr3.js";
8
8
  import {
9
9
  UsageError,
10
10
  rejectExtraPositionals,
11
11
  rejectUnknownFlags
12
- } from "./cli-m7v5z501.js";
12
+ } from "./cli-gxq7yz5f.js";
13
13
  import"./cli-k8f9eb12.js";
14
14
  import"./cli-c41yr7he.js";
15
15
  import {
@@ -7,15 +7,15 @@ import {
7
7
  TARGET_IDS,
8
8
  scaffoldExtension,
9
9
  scaffoldProject
10
- } from "./cli-jcemen7j.js";
10
+ } from "./cli-hz44te1m.js";
11
11
  import {
12
12
  resolveGhostscript
13
- } from "./cli-4vyra9eq.js";
13
+ } from "./cli-36r50yr3.js";
14
14
  import {
15
15
  UsageError,
16
16
  rejectExtraPositionals,
17
17
  rejectUnknownFlags
18
- } from "./cli-m7v5z501.js";
18
+ } from "./cli-gxq7yz5f.js";
19
19
  import"./cli-k8f9eb12.js";
20
20
  import {
21
21
  isToolAvailable
@@ -2,15 +2,15 @@ import {
2
2
  executeValidation,
3
3
  publishTargetFor,
4
4
  reportMissingTools
5
- } from "./cli-jcemen7j.js";
5
+ } from "./cli-hz44te1m.js";
6
6
  import {
7
7
  log
8
- } from "./cli-4vyra9eq.js";
8
+ } from "./cli-36r50yr3.js";
9
9
  import {
10
10
  UsageError,
11
11
  rejectExtraPositionals,
12
12
  rejectUnknownFlags
13
- } from "./cli-m7v5z501.js";
13
+ } from "./cli-gxq7yz5f.js";
14
14
  import"./cli-k8f9eb12.js";
15
15
  import"./cli-c41yr7he.js";
16
16
  import {
@@ -6,10 +6,10 @@ import {
6
6
  runBuild,
7
7
  splitOutPath,
8
8
  startPreviewServer
9
- } from "./cli-jcemen7j.js";
9
+ } from "./cli-hz44te1m.js";
10
10
  import {
11
11
  log
12
- } from "./cli-4vyra9eq.js";
12
+ } from "./cli-36r50yr3.js";
13
13
  import {
14
14
  UsageError,
15
15
  parseFormat,
@@ -17,7 +17,7 @@ import {
17
17
  rejectExtraPositionals,
18
18
  rejectUnknownFlags,
19
19
  resolvePort
20
- } from "./cli-m7v5z501.js";
20
+ } from "./cli-gxq7yz5f.js";
21
21
  import"./cli-k8f9eb12.js";
22
22
  import"./cli-c41yr7he.js";
23
23
  import {
@@ -11,16 +11,16 @@ import {
11
11
  publishProviderFor,
12
12
  resolvePublishFormat,
13
13
  runPublish
14
- } from "./cli-jcemen7j.js";
14
+ } from "./cli-hz44te1m.js";
15
15
  import {
16
16
  FileTokenStore,
17
17
  log
18
- } from "./cli-4vyra9eq.js";
18
+ } from "./cli-36r50yr3.js";
19
19
  import {
20
20
  UsageError,
21
21
  rejectExtraPositionals,
22
22
  rejectUnknownFlags
23
- } from "./cli-m7v5z501.js";
23
+ } from "./cli-gxq7yz5f.js";
24
24
  import"./cli-k8f9eb12.js";
25
25
  import"./cli-c41yr7he.js";
26
26
  import {
package/dist/render.js CHANGED
@@ -209,7 +209,7 @@ function attachDataAttrs(token, kind, name, attrs) {
209
209
  continue;
210
210
  if (k === "class" || k === "id" || k === "template" || k === "region")
211
211
  continue;
212
- token.attrSet(`data-${k}`, v);
212
+ token.attrSet(k.startsWith("data-") ? k : `data-${k}`, v);
213
213
  }
214
214
  }
215
215
  var DECLARED_NAME_RE = /^[a-z][a-z0-9-]*$/;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  executeAndReport
3
- } from "./cli-jcemen7j.js";
3
+ } from "./cli-hz44te1m.js";
4
4
  import {
5
5
  log
6
- } from "./cli-4vyra9eq.js";
6
+ } from "./cli-36r50yr3.js";
7
7
  import {
8
8
  UsageError,
9
9
  rejectExtraPositionals,
10
10
  rejectUnknownFlags
11
- } from "./cli-m7v5z501.js";
11
+ } from "./cli-gxq7yz5f.js";
12
12
  import"./cli-k8f9eb12.js";
13
13
  import"./cli-c41yr7he.js";
14
14
  import {
@@ -61,6 +61,10 @@ var commandArgs = {
61
61
  target: {
62
62
  type: "string",
63
63
  description: "Publish targets to validate against (comma-separated, e.g. dtrpg,itch), overriding the manifest's `targets:`"
64
+ },
65
+ fix: {
66
+ type: "boolean",
67
+ description: "Rewrite the source markdown in place with markdownlint's auto-fixes (source.markdownlint only)"
64
68
  }
65
69
  };
66
70
  var validate_default = defineCommand({
@@ -86,7 +90,8 @@ var validate_default = defineCommand({
86
90
  only: typeof args.only === "string" ? args.only : undefined,
87
91
  skip: typeof args.skip === "string" ? args.skip : undefined,
88
92
  phase: typeof args.phase === "string" ? args.phase : undefined,
89
- target: typeof args.target === "string" ? args.target : undefined
93
+ target: typeof args.target === "string" ? args.target : undefined,
94
+ fix: args.fix === true
90
95
  }, format);
91
96
  } catch (error) {
92
97
  log.error(error instanceof Error ? error.message : String(error));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gutterpress",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "description": "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
5
5
  "author": "itlackey",
6
6
  "license": "MPL-2.0",