md-pipe 0.2.1 → 0.3.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"policy.js","sourceRoot":"","sources":["../../src/generated/policy.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAKnE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE;gBACR;oBACE,QAAQ,EAAE,aAAa;oBACvB,aAAa,EAAE,8DAA8D;oBAC7E,WAAW,EAAE,IAAI;oBACjB,YAAY,EAAE,IAAI;oBAClB,gBAAgB,EAAE,8DAA8D;iBACjF;aACF;SACF;QACD,SAAS,EAAE;YACT;gBACE,MAAM,EAAE,QAAQ;gBAChB,QAAQ,EAAE;oBACR,MAAM,EAAE,QAAQ;iBACjB;gBACD,MAAM,EAAE;oBACN,MAAM,EAAE,OAAO;iBAChB;aACF;YACD;gBACE,MAAM,EAAE,UAAU;gBAClB,QAAQ,EAAE;oBACR,MAAM,EAAE,QAAQ;iBACjB;aACF;YACD;gBACE,MAAM,EAAE,OAAO;gBACf,QAAQ,EAAE;oBACR,MAAM,EAAE,QAAQ;iBACjB;aACF;YACD;gBACE,MAAM,EAAE,QAAQ;gBAChB,QAAQ,EAAE;oBACR,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;qBACjB;iBACF;aACF;YACD;gBACE,MAAM,EAAE,SAAS;gBACjB,QAAQ,EAAE;oBACR,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;qBACjB;iBACF;aACF;YACD;gBACE,MAAM,EAAE,YAAY;gBACpB,QAAQ,EAAE;oBACR,MAAM,EAAE,QAAQ;oBAChB,MAAM,EAAE;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,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;AACzD,CAAC"}
@@ -0,0 +1,400 @@
1
+ # md-pipe
2
+
3
+ A rendering engine that transforms Markdown manuscripts into HTML/PDF through HTML-comment directives and DOM transformations, without polluting the Markdown source.
4
+
5
+
6
+ **Version:** 0.3.0
7
+
8
+ ## Table of Contents
9
+
10
+ - [md-pipe](#md-pipe)
11
+ - [render](#md-pipe-render)
12
+ - [init](#md-pipe-init)
13
+
14
+ ---
15
+
16
+ ## md-pipe
17
+
18
+ Extended Markdown rendering toolchain.
19
+
20
+ Converts HTML-comment directives into class/id/attribute-bearing HTML nodes, embeds CSS, and produces HTML or PDF output. Pipeline stages: preprocess → render → transform → html → pdf. Use --pipeline to select which stage range to execute. Config precedence: CLI args > frontmatter > project config > tool default.
21
+
22
+
23
+ ### Global Options
24
+
25
+ | Option | Aliases | Required | Default | Description |
26
+ |---|---|---|---|---|
27
+ | `--config` | -c | No | | Path to the project config file. Auto-detects md-pipe.config.yml when omitted. |
28
+ | `--verbose` | -v | No | `false` | Enable verbose logging. |
29
+ | `--strict` | | No | `false` | Treat undefined directives as errors. Overrides the config strictDirectives setting. Recommended for CI usage.
30
+ |
31
+
32
+ ### Environment Variables
33
+
34
+ | Variable | Description |
35
+ |---|---|
36
+ | `PUPPETEER_EXECUTABLE_PATH` | Explicitly specify the Chromium executable path. When unset, auto-detects from Puppeteer cache and common install locations.
37
+ |
38
+
39
+ ### render
40
+
41
+ Render a Markdown file through the pipeline.
42
+
43
+ Execute the rendering pipeline on an input file or stdin. Stages: preprocess → render → transform → html → pdf. Use --pipeline to specify the execution range in [start.]end format; omitting start begins from the .md source. When --pipeline is omitted, the output format is inferred from the -o extension (.html → html, .pdf → pdf), then from frontmatter/config, defaulting to html. Output is written to a file with -o, or to stdout when omitted.
44
+
45
+
46
+ **Usage:**
47
+
48
+ ```
49
+ md-pipe <input> [-o output] [--pipeline [start.]end]
50
+ ```
51
+ ```
52
+ md-pipe report.md -o dist/report.html
53
+ ```
54
+ ```
55
+ md-pipe report.md --pipeline .pdf -o dist/report.pdf
56
+ ```
57
+ ```
58
+ md-pipe report.rendered.html --pipeline render.html -o report.html
59
+ ```
60
+ ```
61
+ cat report.md | md-pipe --pipeline .transform | md-pipe --pipeline transform.pdf -o report.pdf
62
+ ```
63
+
64
+ #### Arguments
65
+
66
+ | Name | Required | Description |
67
+ |---|---|---|
68
+ | `input` | No | Input Markdown file. Reads from stdin when omitted. |
69
+
70
+ #### Options
71
+
72
+ | Option | Aliases | Required | Default | Description |
73
+ |---|---|---|---|---|
74
+ | `--output` | -o | No | | Output file path. Writes to stdout when omitted. |
75
+ | `--pipeline` | -p | No | | Pipeline range in [start.]end format. Omitting start begins from the .md source. Examples: .html (source→html), .pdf (source→pdf), .render (source→render), render.html, transform.pdf, html.pdf. When omitted, inferred from -o extension (.html → html, .pdf → pdf). When -o is also omitted, follows frontmatter / config (default: html).
76
+ |
77
+ | `--theme` | -t | No | | Theme name. Applies a preset defined in the project config themes section. Overrides frontmatter theme setting.
78
+ |
79
+ | `--styles` | | No | | Additional CSS file paths. Multiple values allowed. Appended after theme assets in load order.
80
+ |
81
+ | `--scripts` | | No | | Additional JavaScript file paths. Multiple values allowed. Appended after theme assets in load order.
82
+ |
83
+ | `--paper-size` | | No | `"A4"` | Paper size for the pdf stage. Overrides frontmatter paper.size. |
84
+ | `--landscape` | | No | `false` | Landscape orientation for the pdf stage. |
85
+ | `--header` | | No | | Page header text for the pdf stage. |
86
+ | `--margin` | | No | | Page margin for the pdf stage. Example: 16mm, 18mm. |
87
+
88
+ #### Streams
89
+
90
+ **stdin:**
91
+
92
+ - Format: `text`
93
+ - Encoding: `utf-8`
94
+ - Required: No
95
+ - Framing: `raw`
96
+
97
+ **stdout:**
98
+
99
+ - Format: `text`
100
+ - Encoding: `utf-8`
101
+ - Framing: `raw`
102
+
103
+ #### Exit Codes
104
+
105
+ **Exit 0:** Rendering succeeded.
106
+
107
+ **Exit 1:** Rendering error (Chromium launch failure, PDF generation failure, etc.).
108
+
109
+ - **stderr:** format=`text`
110
+
111
+ | Property | Type | Required | Description |
112
+ |---|---|---|---|
113
+ | `message` | `string` | Yes | Error message. |
114
+ | `file` | `string` | No | File path where the error occurred. |
115
+ | `line` | `integer` | No | Line number where the error occurred. |
116
+ | `detail` | `string` | No | Detailed error information. |
117
+
118
+ <details>
119
+ <summary>JSON Schema</summary>
120
+
121
+ ```json
122
+ {
123
+ "type": "object",
124
+ "required": [
125
+ "message"
126
+ ],
127
+ "properties": {
128
+ "message": {
129
+ "type": "string",
130
+ "description": "Error message."
131
+ },
132
+ "file": {
133
+ "type": "string",
134
+ "description": "File path where the error occurred."
135
+ },
136
+ "line": {
137
+ "type": "integer",
138
+ "description": "Line number where the error occurred."
139
+ },
140
+ "detail": {
141
+ "type": "string",
142
+ "description": "Detailed error information."
143
+ }
144
+ }
145
+ }
146
+ ```
147
+
148
+ </details>
149
+
150
+ **Exit 2:** Input error (file not found, syntax error, invalid pipeline specification, undefined directive in strict mode, etc.).
151
+
152
+
153
+ - **stderr:** format=`text`
154
+
155
+ | Property | Type | Required | Description |
156
+ |---|---|---|---|
157
+ | `message` | `string` | Yes | Error message. |
158
+ | `file` | `string` | No | File path where the error occurred. |
159
+ | `line` | `integer` | No | Line number where the error occurred. |
160
+ | `detail` | `string` | No | Detailed error information. |
161
+
162
+ <details>
163
+ <summary>JSON Schema</summary>
164
+
165
+ ```json
166
+ {
167
+ "type": "object",
168
+ "required": [
169
+ "message"
170
+ ],
171
+ "properties": {
172
+ "message": {
173
+ "type": "string",
174
+ "description": "Error message."
175
+ },
176
+ "file": {
177
+ "type": "string",
178
+ "description": "File path where the error occurred."
179
+ },
180
+ "line": {
181
+ "type": "integer",
182
+ "description": "Line number where the error occurred."
183
+ },
184
+ "detail": {
185
+ "type": "string",
186
+ "description": "Detailed error information."
187
+ }
188
+ }
189
+ }
190
+ ```
191
+
192
+ </details>
193
+
194
+ #### Extensions
195
+
196
+ ```yaml
197
+ x-agent:
198
+ recommended_before_use:
199
+ - Check that md-pipe.config.yml exists when using themes or custom directives
200
+ - Verify Chromium is available when targeting pdf output
201
+ rollback:
202
+ supported: false
203
+ notes: Output files can be deleted manually; no side effects beyond file writes.
204
+ retryable_exit_codes:
205
+ - 1
206
+ expected_duration_ms: 5000
207
+ ```
208
+
209
+ ---
210
+
211
+ ### init
212
+
213
+ Initialize a md-pipe project.
214
+
215
+ Creates a md-pipe.config.yml template in the current directory.
216
+
217
+
218
+ **Usage:**
219
+
220
+ ```
221
+ md-pipe init
222
+ ```
223
+ ```
224
+ md-pipe init --theme business-report
225
+ ```
226
+
227
+ #### Options
228
+
229
+ | Option | Aliases | Required | Default | Description |
230
+ |---|---|---|---|---|
231
+ | `--theme` | -t | No | `"default"` | Initial theme name to scaffold. |
232
+ | `--force` | -f | No | `false` | Overwrite existing config file. |
233
+
234
+ #### Exit Codes
235
+
236
+ **Exit 0:** Initialization succeeded.
237
+
238
+ - **stdout:** format=`text`
239
+
240
+
241
+ <details>
242
+ <summary>JSON Schema</summary>
243
+
244
+ ```json
245
+ {
246
+ "type": "string",
247
+ "description": "List of generated files."
248
+ }
249
+ ```
250
+
251
+ </details>
252
+
253
+ **Exit 1:** Initialization error (file write failure, etc.).
254
+
255
+ - **stderr:** format=`text`
256
+
257
+ | Property | Type | Required | Description |
258
+ |---|---|---|---|
259
+ | `message` | `string` | Yes | Error message. |
260
+ | `file` | `string` | No | File path where the error occurred. |
261
+ | `line` | `integer` | No | Line number where the error occurred. |
262
+ | `detail` | `string` | No | Detailed error information. |
263
+
264
+ <details>
265
+ <summary>JSON Schema</summary>
266
+
267
+ ```json
268
+ {
269
+ "type": "object",
270
+ "required": [
271
+ "message"
272
+ ],
273
+ "properties": {
274
+ "message": {
275
+ "type": "string",
276
+ "description": "Error message."
277
+ },
278
+ "file": {
279
+ "type": "string",
280
+ "description": "File path where the error occurred."
281
+ },
282
+ "line": {
283
+ "type": "integer",
284
+ "description": "Line number where the error occurred."
285
+ },
286
+ "detail": {
287
+ "type": "string",
288
+ "description": "Detailed error information."
289
+ }
290
+ }
291
+ }
292
+ ```
293
+
294
+ </details>
295
+
296
+ **Exit 3:** Config file already exists (without --force).
297
+
298
+ - **stderr:** format=`text`
299
+
300
+ | Property | Type | Required | Description |
301
+ |---|---|---|---|
302
+ | `message` | `string` | Yes | Error message. |
303
+ | `file` | `string` | No | File path where the error occurred. |
304
+ | `line` | `integer` | No | Line number where the error occurred. |
305
+ | `detail` | `string` | No | Detailed error information. |
306
+
307
+ <details>
308
+ <summary>JSON Schema</summary>
309
+
310
+ ```json
311
+ {
312
+ "type": "object",
313
+ "required": [
314
+ "message"
315
+ ],
316
+ "properties": {
317
+ "message": {
318
+ "type": "string",
319
+ "description": "Error message."
320
+ },
321
+ "file": {
322
+ "type": "string",
323
+ "description": "File path where the error occurred."
324
+ },
325
+ "line": {
326
+ "type": "integer",
327
+ "description": "Line number where the error occurred."
328
+ },
329
+ "detail": {
330
+ "type": "string",
331
+ "description": "Detailed error information."
332
+ }
333
+ }
334
+ }
335
+ ```
336
+
337
+ </details>
338
+
339
+ #### Extensions
340
+
341
+ ```yaml
342
+ x-agent:
343
+ recommended_before_use:
344
+ - Check whether md-pipe.config.yml already exists
345
+ human_review:
346
+ required: false
347
+ reason: Safe scaffolding operation; --force requires attention.
348
+ rollback:
349
+ supported: true
350
+ notes: Delete the generated md-pipe.config.yml.
351
+ ```
352
+
353
+ ---
354
+
355
+ ---
356
+
357
+ ## Schemas
358
+
359
+ ### ErrorMessage
360
+
361
+ Type: `object`
362
+
363
+ | Property | Type | Required | Description |
364
+ |---|---|---|---|
365
+ | `message` | `string` | Yes | Error message. |
366
+ | `file` | `string` | No | File path where the error occurred. |
367
+ | `line` | `integer` | No | Line number where the error occurred. |
368
+ | `detail` | `string` | No | Detailed error information. |
369
+
370
+ <details>
371
+ <summary>JSON Schema</summary>
372
+
373
+ ```json
374
+ {
375
+ "type": "object",
376
+ "required": [
377
+ "message"
378
+ ],
379
+ "properties": {
380
+ "message": {
381
+ "type": "string",
382
+ "description": "Error message."
383
+ },
384
+ "file": {
385
+ "type": "string",
386
+ "description": "File path where the error occurred."
387
+ },
388
+ "line": {
389
+ "type": "integer",
390
+ "description": "Line number where the error occurred."
391
+ },
392
+ "detail": {
393
+ "type": "string",
394
+ "description": "Detailed error information."
395
+ }
396
+ }
397
+ }
398
+ ```
399
+
400
+ </details>