gutterpress 0.11.5 → 0.11.6-alpha.2
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/api/index.js +1 -1
- package/dist/{audit-wxzty30c.js → audit-fdba6axw.js} +3 -3
- package/dist/{build-m54gr7r3.js → build-2gjr2rj6.js} +3 -3
- package/dist/{cli-d8my7adx.js → cli-7k2v2sya.js} +8 -8
- package/dist/{cli-fxk3whwm.js → cli-ersw5g7j.js} +1 -1
- package/dist/{cli-pqe8cahv.js → cli-wmvvkwcc.js} +1 -1
- package/dist/cli.js +14 -14
- package/dist/{doctor-3aj8rkjs.js → doctor-vgarhrsg.js} +2 -2
- package/dist/{ext-cwpwca5v.js → ext-hb5k5gga.js} +3 -3
- package/dist/{index-771dmhpc.js → index-nmykzwb4.js} +7 -7
- package/dist/index.js +1 -1
- package/dist/lib/extension-manager.d.ts +3 -1
- package/dist/{lint-s4ydm5zs.js → lint-0pfqbs5r.js} +3 -3
- package/dist/{new-t3mcy3st.js → new-nxxx2mv2.js} +3 -3
- package/dist/{preflight-phf1d3e0.js → preflight-g7xjme17.js} +3 -3
- package/dist/{preview-aasty7am.js → preview-j59b5hg3.js} +3 -3
- package/dist/{publish-9g4dph7e.js → publish-mzct8ggw.js} +3 -3
- package/dist/{validate-mrp8dve2.js → validate-z2drbha6.js} +3 -3
- package/package.json +1 -1
package/dist/api/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-7k2v2sya.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-wmvvkwcc.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-ersw5g7j.js";
|
|
12
12
|
import"./cli-sekhwex4.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuild,
|
|
3
3
|
splitOutPath
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-7k2v2sya.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-wmvvkwcc.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
parseFormat,
|
|
11
11
|
parsePdfxFlavor,
|
|
12
12
|
rejectExtraPositionals,
|
|
13
13
|
rejectUnknownFlags
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-ersw5g7j.js";
|
|
15
15
|
import"./cli-sekhwex4.js";
|
|
16
16
|
import"./cli-c41yr7he.js";
|
|
17
17
|
import {
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
stampCreator,
|
|
14
14
|
stripAnnotations,
|
|
15
15
|
warn
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-wmvvkwcc.js";
|
|
17
17
|
import {
|
|
18
18
|
DEBOUNCE,
|
|
19
19
|
UsageError,
|
|
20
20
|
resolvePort
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-ersw5g7j.js";
|
|
22
22
|
import {
|
|
23
23
|
MARGIN_BOX_IGNORED_PROPERTIES,
|
|
24
24
|
RENDER_TIMEOUT_MS,
|
|
@@ -5836,7 +5836,7 @@ async function loadNpmPackage(packageName, baseDir, version) {
|
|
|
5836
5836
|
} catch {}
|
|
5837
5837
|
const looksLikeJsFilename = /\.(m?js|cjs)$/i.test(packageName);
|
|
5838
5838
|
const suggestedPath = looksLikeJsFilename ? `./${packageName}` : `./plugins/${packageName}.js`;
|
|
5839
|
-
throw new Error(`Extension "${packageName}" not found. Install it with \`gutterpress ext add ${packageName}\` (or
|
|
5839
|
+
throw new Error(`Extension "${packageName}" not found. Install it with \`gutterpress ext add ${packageName}\` (or Book settings > Features > Advanced in the desktop app),
|
|
5840
5840
|
or reference a local file under \`extensions:\`:
|
|
5841
5841
|
extensions:
|
|
5842
5842
|
- ${suggestedPath}`);
|
|
@@ -11376,27 +11376,27 @@ var RECOMMENDED_EXTENSIONS = [
|
|
|
11376
11376
|
{
|
|
11377
11377
|
use: "markdown-it-mark",
|
|
11378
11378
|
label: "Highlight",
|
|
11379
|
-
description: "
|
|
11379
|
+
description: "Highlight text by wrapping it in `==double equals==`."
|
|
11380
11380
|
},
|
|
11381
11381
|
{
|
|
11382
11382
|
use: "markdown-it-sub",
|
|
11383
11383
|
label: "Subscript",
|
|
11384
|
-
description: "
|
|
11384
|
+
description: "Lower text below the line, like the 2 in `H~2~O`."
|
|
11385
11385
|
},
|
|
11386
11386
|
{
|
|
11387
11387
|
use: "markdown-it-sup",
|
|
11388
11388
|
label: "Superscript",
|
|
11389
|
-
description: "
|
|
11389
|
+
description: "Raise text above the line, like the th in `29^th^`."
|
|
11390
11390
|
},
|
|
11391
11391
|
{
|
|
11392
11392
|
use: "markdown-it-abbr",
|
|
11393
11393
|
label: "Abbreviations",
|
|
11394
|
-
description: "Define `*[
|
|
11394
|
+
description: "Explain an abbreviation when readers hover over it. Define it once, like `*[GPS]: Global Positioning System`."
|
|
11395
11395
|
},
|
|
11396
11396
|
{
|
|
11397
11397
|
use: "gutterpress-gfm-alerts",
|
|
11398
11398
|
label: "Callouts",
|
|
11399
|
-
description: "
|
|
11399
|
+
description: "Turn a quote into a boxed note: start it with `> [!NOTE]` (or `TIP`, `IMPORTANT`, `WARNING`, `CAUTION`)."
|
|
11400
11400
|
}
|
|
11401
11401
|
];
|
|
11402
11402
|
var BUILT_IN_STYLE_SET_IDS = ["clean-book", "zine", "technical-doc"];
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "gutterpress",
|
|
7
|
-
version: "0.11.
|
|
7
|
+
version: "0.11.6-alpha.2",
|
|
8
8
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
9
9
|
author: "itlackey",
|
|
10
10
|
license: "MPL-2.0",
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
UsageError,
|
|
7
7
|
package_default,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-ersw5g7j.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT_CODES
|
|
12
12
|
} from "./cli-46ycxe6r.js";
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
import { defineCommand, parseArgs, runMain } from "citty";
|
|
19
19
|
import { statSync } from "node:fs";
|
|
20
20
|
var SUBCOMMANDS = {
|
|
21
|
-
new: () => import("./new-
|
|
22
|
-
preview: () => import("./preview-
|
|
23
|
-
build: () => import("./build-
|
|
24
|
-
publish: () => import("./publish-
|
|
25
|
-
lint: () => import("./lint-
|
|
26
|
-
validate: () => import("./validate-
|
|
27
|
-
audit: () => import("./audit-
|
|
28
|
-
preflight: () => import("./preflight-
|
|
29
|
-
doctor: () => import("./doctor-
|
|
30
|
-
ext: () => import("./ext-
|
|
21
|
+
new: () => import("./new-nxxx2mv2.js").then((m) => m.default),
|
|
22
|
+
preview: () => import("./preview-j59b5hg3.js").then((m) => m.default),
|
|
23
|
+
build: () => import("./build-2gjr2rj6.js").then((m) => m.default),
|
|
24
|
+
publish: () => import("./publish-mzct8ggw.js").then((m) => m.default),
|
|
25
|
+
lint: () => import("./lint-0pfqbs5r.js").then((m) => m.default),
|
|
26
|
+
validate: () => import("./validate-z2drbha6.js").then((m) => m.default),
|
|
27
|
+
audit: () => import("./audit-fdba6axw.js").then((m) => m.default),
|
|
28
|
+
preflight: () => import("./preflight-g7xjme17.js").then((m) => m.default),
|
|
29
|
+
doctor: () => import("./doctor-vgarhrsg.js").then((m) => m.default),
|
|
30
|
+
ext: () => import("./ext-hb5k5gga.js").then((m) => m.default)
|
|
31
31
|
};
|
|
32
32
|
var VERSION = package_default.version;
|
|
33
33
|
var main = defineCommand({
|
|
@@ -52,7 +52,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
52
52
|
const [command, ...commandArgs] = rawArgs;
|
|
53
53
|
try {
|
|
54
54
|
if (command === "new") {
|
|
55
|
-
const { newArgs } = await import("./new-
|
|
55
|
+
const { newArgs } = await import("./new-nxxx2mv2.js");
|
|
56
56
|
rejectUnknownFlags(commandArgs, newArgs, "new");
|
|
57
57
|
const parsed = parseArgs(commandArgs, {
|
|
58
58
|
...newArgs,
|
|
@@ -64,7 +64,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
if (command === "preflight") {
|
|
67
|
-
const { preflightArgs } = await import("./preflight-
|
|
67
|
+
const { preflightArgs } = await import("./preflight-g7xjme17.js");
|
|
68
68
|
rejectUnknownFlags(commandArgs, preflightArgs, "preflight");
|
|
69
69
|
const parsed = parseArgs(commandArgs, {
|
|
70
70
|
...preflightArgs,
|
|
@@ -84,7 +84,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
84
84
|
}
|
|
85
85
|
if (subcommand.startsWith("-"))
|
|
86
86
|
return;
|
|
87
|
-
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-
|
|
87
|
+
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-hb5k5gga.js");
|
|
88
88
|
if (!EXT_SUBCOMMANDS.includes(subcommand)) {
|
|
89
89
|
throw new UsageError(`gutterpress ext: unknown command "${subcommand}"`);
|
|
90
90
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSystemDiagnostics,
|
|
3
3
|
log
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-wmvvkwcc.js";
|
|
5
5
|
import {
|
|
6
6
|
UsageError,
|
|
7
7
|
rejectExtraPositionals,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-ersw5g7j.js";
|
|
10
10
|
import"./cli-c41yr7he.js";
|
|
11
11
|
import"./cli-46ycxe6r.js";
|
|
12
12
|
import"./cli-37x76zdn.js";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
removeExtension,
|
|
11
11
|
searchNpmExtensions,
|
|
12
12
|
setExtensionEnabled
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
} from "./cli-7k2v2sya.js";
|
|
14
|
+
import"./cli-wmvvkwcc.js";
|
|
15
15
|
import {
|
|
16
16
|
UsageError,
|
|
17
17
|
exitForUsage,
|
|
18
18
|
rejectExtraPositionals,
|
|
19
19
|
rejectUnknownFlags,
|
|
20
20
|
resolveProjectDir
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-ersw5g7j.js";
|
|
22
22
|
import"./cli-sekhwex4.js";
|
|
23
23
|
import"./cli-c41yr7he.js";
|
|
24
24
|
import {
|
|
@@ -4338,7 +4338,7 @@ async function loadNpmPackage(packageName, baseDir, version) {
|
|
|
4338
4338
|
} catch {}
|
|
4339
4339
|
const looksLikeJsFilename = /\.(m?js|cjs)$/i.test(packageName);
|
|
4340
4340
|
const suggestedPath = looksLikeJsFilename ? `./${packageName}` : `./plugins/${packageName}.js`;
|
|
4341
|
-
throw new Error(`Extension "${packageName}" not found. Install it with \`gutterpress ext add ${packageName}\` (or
|
|
4341
|
+
throw new Error(`Extension "${packageName}" not found. Install it with \`gutterpress ext add ${packageName}\` (or Book settings > Features > Advanced in the desktop app),
|
|
4342
4342
|
or reference a local file under \`extensions:\`:
|
|
4343
4343
|
extensions:
|
|
4344
4344
|
- ${suggestedPath}`);
|
|
@@ -4875,7 +4875,7 @@ import git from "isomorphic-git";
|
|
|
4875
4875
|
// package.json
|
|
4876
4876
|
var package_default = {
|
|
4877
4877
|
name: "gutterpress",
|
|
4878
|
-
version: "0.11.
|
|
4878
|
+
version: "0.11.6-alpha.2",
|
|
4879
4879
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
4880
4880
|
author: "itlackey",
|
|
4881
4881
|
license: "MPL-2.0",
|
|
@@ -12433,27 +12433,27 @@ var RECOMMENDED_EXTENSIONS = [
|
|
|
12433
12433
|
{
|
|
12434
12434
|
use: "markdown-it-mark",
|
|
12435
12435
|
label: "Highlight",
|
|
12436
|
-
description: "
|
|
12436
|
+
description: "Highlight text by wrapping it in `==double equals==`."
|
|
12437
12437
|
},
|
|
12438
12438
|
{
|
|
12439
12439
|
use: "markdown-it-sub",
|
|
12440
12440
|
label: "Subscript",
|
|
12441
|
-
description: "
|
|
12441
|
+
description: "Lower text below the line, like the 2 in `H~2~O`."
|
|
12442
12442
|
},
|
|
12443
12443
|
{
|
|
12444
12444
|
use: "markdown-it-sup",
|
|
12445
12445
|
label: "Superscript",
|
|
12446
|
-
description: "
|
|
12446
|
+
description: "Raise text above the line, like the th in `29^th^`."
|
|
12447
12447
|
},
|
|
12448
12448
|
{
|
|
12449
12449
|
use: "markdown-it-abbr",
|
|
12450
12450
|
label: "Abbreviations",
|
|
12451
|
-
description: "Define `*[
|
|
12451
|
+
description: "Explain an abbreviation when readers hover over it. Define it once, like `*[GPS]: Global Positioning System`."
|
|
12452
12452
|
},
|
|
12453
12453
|
{
|
|
12454
12454
|
use: "gutterpress-gfm-alerts",
|
|
12455
12455
|
label: "Callouts",
|
|
12456
|
-
description: "
|
|
12456
|
+
description: "Turn a quote into a boxed note: start it with `> [!NOTE]` (or `TIP`, `IMPORTANT`, `WARNING`, `CAUTION`)."
|
|
12457
12457
|
}
|
|
12458
12458
|
];
|
|
12459
12459
|
var BUILT_IN_STYLE_SET_IDS = ["clean-book", "zine", "technical-doc"];
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,9 @@ export interface RecommendedExtension {
|
|
|
60
60
|
use: string;
|
|
61
61
|
/** Short, plain-language feature name shown as the row title. */
|
|
62
62
|
label: string;
|
|
63
|
-
/** One-line author-friendly description.
|
|
63
|
+
/** One-line author-friendly description in plain words. Backtick spans mark
|
|
64
|
+
* "what to type" (the desktop sets them in code type), so keep them paired
|
|
65
|
+
* and keep HTML tag names out of the prose. */
|
|
64
66
|
description: string;
|
|
65
67
|
}
|
|
66
68
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANIFEST_FILENAMES,
|
|
3
3
|
runLint
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-7k2v2sya.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-wmvvkwcc.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
rejectExtraPositionals,
|
|
11
11
|
rejectUnknownFlags
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-ersw5g7j.js";
|
|
13
13
|
import"./cli-sekhwex4.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-
|
|
10
|
+
} from "./cli-7k2v2sya.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveGhostscript
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-wmvvkwcc.js";
|
|
14
14
|
import {
|
|
15
15
|
UsageError,
|
|
16
16
|
rejectExtraPositionals,
|
|
17
17
|
rejectUnknownFlags
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-ersw5g7j.js";
|
|
19
19
|
import"./cli-sekhwex4.js";
|
|
20
20
|
import {
|
|
21
21
|
isToolAvailable
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
executeValidation,
|
|
3
3
|
publishTargetFor,
|
|
4
4
|
reportMissingTools
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-7k2v2sya.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-wmvvkwcc.js";
|
|
9
9
|
import {
|
|
10
10
|
UsageError,
|
|
11
11
|
rejectExtraPositionals,
|
|
12
12
|
rejectUnknownFlags
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-ersw5g7j.js";
|
|
14
14
|
import"./cli-sekhwex4.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-
|
|
9
|
+
} from "./cli-7k2v2sya.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-wmvvkwcc.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-
|
|
20
|
+
} from "./cli-ersw5g7j.js";
|
|
21
21
|
import"./cli-sekhwex4.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-
|
|
14
|
+
} from "./cli-7k2v2sya.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-wmvvkwcc.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-ersw5g7j.js";
|
|
24
24
|
import"./cli-sekhwex4.js";
|
|
25
25
|
import"./cli-c41yr7he.js";
|
|
26
26
|
import {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-7k2v2sya.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-wmvvkwcc.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-ersw5g7j.js";
|
|
12
12
|
import"./cli-sekhwex4.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
package/package.json
CHANGED