@masumdev/markforge 0.2.5 → 0.4.0
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/README.md +173 -116
- package/dist/App-3QDKBKHG.mjs +328 -0
- package/dist/{chunk-IYGPJIK5.mjs → chunk-BPHDY6VB.mjs} +6 -0
- package/dist/{App-GNRUPFM7.mjs → chunk-CRV7R2BG.mjs} +2094 -570
- package/dist/{chunk-NGC2ZAWZ.mjs → chunk-TNWZ4MFS.mjs} +1 -1
- package/dist/cli.mjs +29 -7
- package/dist/index.d.mts +603 -117
- package/dist/index.d.ts +603 -117
- package/dist/index.js +2863 -202
- package/dist/index.mjs +2851 -202
- package/dist/{loadConfig-PD6ENMAM.mjs → loadConfig-PGJKPE6G.mjs} +1 -1
- package/dist/previewServer-XAUOBNBZ.mjs +893 -0
- package/package.json +5 -1
- package/schema.json +142 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masumdev/markforge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Modern, high-performance Markdown & MDX multi-format document publishing engine and CLI (DOCX, PDF, HTML, and Images) with embedded HTML/CSS, image inliner, and Ink terminal UI.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -56,17 +56,21 @@
|
|
|
56
56
|
"url": "https://github.com/masumrpg/react-native-library/issues"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@pdfsmaller/pdf-encrypt": "^1.2.0",
|
|
59
60
|
"commander": "^13.1.0",
|
|
60
61
|
"docx": "^9.2.0",
|
|
61
62
|
"gray-matter": "^4.0.3",
|
|
62
63
|
"ink": "^6.1.0",
|
|
63
64
|
"ink-spinner": "^5.0.0",
|
|
64
65
|
"ink-table": "^3.1.0",
|
|
66
|
+
"katex": "^0.18.4",
|
|
67
|
+
"pdf-lib": "^1.17.1",
|
|
65
68
|
"picocolors": "^1.1.1",
|
|
66
69
|
"react": "^19.0.0",
|
|
67
70
|
"yaml": "^2.7.0"
|
|
68
71
|
},
|
|
69
72
|
"devDependencies": {
|
|
73
|
+
"@types/katex": "^0.16.8",
|
|
70
74
|
"@types/react": "^19.0.0",
|
|
71
75
|
"bun-types": "^1.4.0",
|
|
72
76
|
"ink-testing-library": "^4.0.0",
|
package/schema.json
CHANGED
|
@@ -254,6 +254,148 @@
|
|
|
254
254
|
"enum": ["github-dark", "github-light", "dracula", "monokai", "nord"],
|
|
255
255
|
"default": "github-dark"
|
|
256
256
|
},
|
|
257
|
+
"coverPage": {
|
|
258
|
+
"description": "Dedicated standalone front cover page configuration",
|
|
259
|
+
"oneOf": [
|
|
260
|
+
{ "type": "boolean" },
|
|
261
|
+
{
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"enabled": { "type": "boolean" },
|
|
265
|
+
"preset": { "type": "string", "enum": ["modern", "corporate-split", "minimal", "card"] },
|
|
266
|
+
"title": { "type": "string" },
|
|
267
|
+
"subtitle": { "type": "string" },
|
|
268
|
+
"author": { "type": "string" },
|
|
269
|
+
"company": { "type": "string" },
|
|
270
|
+
"version": { "type": "string" },
|
|
271
|
+
"date": { "type": "string" },
|
|
272
|
+
"badge": { "type": "string" },
|
|
273
|
+
"badgeColor": { "type": "string" },
|
|
274
|
+
"badgeTextColor": { "type": "string" },
|
|
275
|
+
"logo": { "type": "string" },
|
|
276
|
+
"footerText": { "type": "string" }
|
|
277
|
+
},
|
|
278
|
+
"additionalProperties": false
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"backCover": {
|
|
283
|
+
"description": "Dedicated standalone back cover / closing page configuration",
|
|
284
|
+
"oneOf": [
|
|
285
|
+
{ "type": "boolean" },
|
|
286
|
+
{
|
|
287
|
+
"type": "object",
|
|
288
|
+
"properties": {
|
|
289
|
+
"enabled": { "type": "boolean" },
|
|
290
|
+
"preset": { "type": "string", "enum": ["modern", "corporate", "minimal", "contact-card"] },
|
|
291
|
+
"title": { "type": "string" },
|
|
292
|
+
"subtitle": { "type": "string" },
|
|
293
|
+
"company": { "type": "string" },
|
|
294
|
+
"address": { "type": "string" },
|
|
295
|
+
"email": { "type": "string" },
|
|
296
|
+
"phone": { "type": "string" },
|
|
297
|
+
"website": { "type": "string" },
|
|
298
|
+
"social": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"properties": {
|
|
301
|
+
"github": { "type": "string" },
|
|
302
|
+
"twitter": { "type": "string" },
|
|
303
|
+
"linkedin": { "type": "string" }
|
|
304
|
+
},
|
|
305
|
+
"additionalProperties": true
|
|
306
|
+
},
|
|
307
|
+
"copyright": { "type": "string" }
|
|
308
|
+
},
|
|
309
|
+
"additionalProperties": false
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"numberHeadings": {
|
|
314
|
+
"description": "Hierarchical decimal section numbering (e.g. 1., 1.1, 1.1.1)",
|
|
315
|
+
"oneOf": [
|
|
316
|
+
{ "type": "boolean" },
|
|
317
|
+
{
|
|
318
|
+
"type": "object",
|
|
319
|
+
"properties": {
|
|
320
|
+
"enabled": { "type": "boolean" },
|
|
321
|
+
"depth": { "type": "number", "minimum": 1, "maximum": 6 },
|
|
322
|
+
"skipH1": { "type": "boolean" },
|
|
323
|
+
"prefix": { "type": "string" }
|
|
324
|
+
},
|
|
325
|
+
"additionalProperties": false
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
"math": {
|
|
330
|
+
"type": "boolean",
|
|
331
|
+
"description": "Enable native KaTeX mathematical LaTeX equation rendering ($inline$ and $$block$$)",
|
|
332
|
+
"default": true
|
|
333
|
+
},
|
|
334
|
+
"security": {
|
|
335
|
+
"type": "object",
|
|
336
|
+
"description": "PDF encryption and access permissions",
|
|
337
|
+
"properties": {
|
|
338
|
+
"userPassword": { "type": "string" },
|
|
339
|
+
"ownerPassword": { "type": "string" },
|
|
340
|
+
"permissions": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"properties": {
|
|
343
|
+
"printing": { "oneOf": [{ "type": "string", "enum": ["highResolution", "lowResolution"] }, { "type": "boolean" }] },
|
|
344
|
+
"modifying": { "type": "boolean" },
|
|
345
|
+
"copying": { "type": "boolean" },
|
|
346
|
+
"annotating": { "type": "boolean" },
|
|
347
|
+
"fillingForms": { "type": "boolean" },
|
|
348
|
+
"contentAccessibility": { "type": "boolean" },
|
|
349
|
+
"documentAssembly": { "type": "boolean" }
|
|
350
|
+
},
|
|
351
|
+
"additionalProperties": false
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"additionalProperties": false
|
|
355
|
+
},
|
|
356
|
+
"signatures": {
|
|
357
|
+
"description": "Signature and approval block layout and signatory definitions",
|
|
358
|
+
"oneOf": [
|
|
359
|
+
{
|
|
360
|
+
"type": "array",
|
|
361
|
+
"items": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"properties": {
|
|
364
|
+
"title": { "type": "string" },
|
|
365
|
+
"name": { "type": "string" },
|
|
366
|
+
"role": { "type": "string" },
|
|
367
|
+
"date": { "type": "string" },
|
|
368
|
+
"signatureImage": { "type": "string" }
|
|
369
|
+
},
|
|
370
|
+
"required": ["name"]
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "object",
|
|
375
|
+
"properties": {
|
|
376
|
+
"title": { "type": "string" },
|
|
377
|
+
"style": { "type": "string", "enum": ["line", "box", "clean"] },
|
|
378
|
+
"align": { "type": "string", "enum": ["left", "center", "right", "space-between"] },
|
|
379
|
+
"items": {
|
|
380
|
+
"type": "array",
|
|
381
|
+
"items": {
|
|
382
|
+
"type": "object",
|
|
383
|
+
"properties": {
|
|
384
|
+
"title": { "type": "string" },
|
|
385
|
+
"name": { "type": "string" },
|
|
386
|
+
"role": { "type": "string" },
|
|
387
|
+
"date": { "type": "string" },
|
|
388
|
+
"signatureImage": { "type": "string" }
|
|
389
|
+
},
|
|
390
|
+
"required": ["name"]
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"required": ["items"],
|
|
395
|
+
"additionalProperties": false
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
257
399
|
"metadata": {
|
|
258
400
|
"type": "object",
|
|
259
401
|
"description": "Default document metadata dictionary (used as fallback if not in markdown frontmatter)",
|