@quillmark/wasm 0.37.0 → 0.38.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 +3 -3
- package/bundler/wasm.d.ts +4 -3
- package/bundler/wasm_bg.js +3 -2
- package/bundler/wasm_bg.wasm +0 -0
- package/node-esm/wasm.d.ts +4 -3
- package/node-esm/wasm_bg.js +3 -2
- package/node-esm/wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ The main workflow for rendering documents:
|
|
|
108
108
|
- `static parseMarkdown(markdown)` - Parse markdown into a ParsedDocument (Step 1)
|
|
109
109
|
- `registerQuill(quillJson)` - Register a Quill template bundle from JSON (Step 2)
|
|
110
110
|
- `getQuillInfo(name)` - Get shallow Quill metadata and configuration options (Step 3)
|
|
111
|
-
- `render(parsedDoc, options)` - Render a ParsedDocument to final artifacts (Step 4)
|
|
111
|
+
- `render(parsedDoc, options)` - Render a ParsedDocument to final artifacts. Note that the quill reference in `options` is optional to specify and can be inferred from the markdown content's frontmatter (Step 4)
|
|
112
112
|
|
|
113
113
|
### Utility Methods
|
|
114
114
|
|
|
@@ -125,7 +125,7 @@ Additional methods for managing the engine and debugging:
|
|
|
125
125
|
{
|
|
126
126
|
format?: 'pdf' | 'svg' | 'txt', // Output format (default: 'pdf')
|
|
127
127
|
assets?: Record<string, Uint8Array>, // Additional assets to inject as plain object (not Map)
|
|
128
|
-
quillName?: string // Override
|
|
128
|
+
quillName?: string // Override quillRef from ParsedDocument
|
|
129
129
|
}
|
|
130
130
|
```
|
|
131
131
|
|
|
@@ -136,7 +136,7 @@ Returned by `parseMarkdown()`:
|
|
|
136
136
|
```typescript
|
|
137
137
|
{
|
|
138
138
|
fields: object, // YAML frontmatter fields
|
|
139
|
-
|
|
139
|
+
quillRef: string // Quill reference from QUILL field (or "__default__")
|
|
140
140
|
}
|
|
141
141
|
```
|
|
142
142
|
|
package/bundler/wasm.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface QuillInfo {
|
|
|
49
49
|
|
|
50
50
|
export interface ParsedDocument {
|
|
51
51
|
fields: Record<string, any>;
|
|
52
|
-
|
|
52
|
+
quillRef: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface RenderOptions {
|
|
@@ -74,7 +74,7 @@ export class Quillmark {
|
|
|
74
74
|
* Parse markdown into a ParsedDocument
|
|
75
75
|
*
|
|
76
76
|
* This is the first step in the workflow. The returned ParsedDocument contains
|
|
77
|
-
* the parsed YAML frontmatter fields and the
|
|
77
|
+
* the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
|
|
78
78
|
*/
|
|
79
79
|
static parseMarkdown(markdown: string): ParsedDocument;
|
|
80
80
|
/**
|
|
@@ -120,8 +120,9 @@ export class Quillmark {
|
|
|
120
120
|
/**
|
|
121
121
|
* Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
|
|
122
122
|
*
|
|
123
|
+
* Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
|
|
123
124
|
* Uses the Quill specified in options.quill_name if provided,
|
|
124
|
-
* otherwise infers it from the ParsedDocument's
|
|
125
|
+
* otherwise infers it from the ParsedDocument's quill_ref field.
|
|
125
126
|
*/
|
|
126
127
|
render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
|
|
127
128
|
/**
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -258,7 +258,7 @@ export class Quillmark {
|
|
|
258
258
|
* Parse markdown into a ParsedDocument
|
|
259
259
|
*
|
|
260
260
|
* This is the first step in the workflow. The returned ParsedDocument contains
|
|
261
|
-
* the parsed YAML frontmatter fields and the
|
|
261
|
+
* the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
|
|
262
262
|
* @param {string} markdown
|
|
263
263
|
* @returns {ParsedDocument}
|
|
264
264
|
*/
|
|
@@ -407,8 +407,9 @@ export class Quillmark {
|
|
|
407
407
|
/**
|
|
408
408
|
* Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
|
|
409
409
|
*
|
|
410
|
+
* Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
|
|
410
411
|
* Uses the Quill specified in options.quill_name if provided,
|
|
411
|
-
* otherwise infers it from the ParsedDocument's
|
|
412
|
+
* otherwise infers it from the ParsedDocument's quill_ref field.
|
|
412
413
|
* @param {ParsedDocument} parsed
|
|
413
414
|
* @param {RenderOptions} opts
|
|
414
415
|
* @returns {RenderResult}
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface QuillInfo {
|
|
|
49
49
|
|
|
50
50
|
export interface ParsedDocument {
|
|
51
51
|
fields: Record<string, any>;
|
|
52
|
-
|
|
52
|
+
quillRef: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface RenderOptions {
|
|
@@ -74,7 +74,7 @@ export class Quillmark {
|
|
|
74
74
|
* Parse markdown into a ParsedDocument
|
|
75
75
|
*
|
|
76
76
|
* This is the first step in the workflow. The returned ParsedDocument contains
|
|
77
|
-
* the parsed YAML frontmatter fields and the
|
|
77
|
+
* the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
|
|
78
78
|
*/
|
|
79
79
|
static parseMarkdown(markdown: string): ParsedDocument;
|
|
80
80
|
/**
|
|
@@ -120,8 +120,9 @@ export class Quillmark {
|
|
|
120
120
|
/**
|
|
121
121
|
* Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
|
|
122
122
|
*
|
|
123
|
+
* Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
|
|
123
124
|
* Uses the Quill specified in options.quill_name if provided,
|
|
124
|
-
* otherwise infers it from the ParsedDocument's
|
|
125
|
+
* otherwise infers it from the ParsedDocument's quill_ref field.
|
|
125
126
|
*/
|
|
126
127
|
render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
|
|
127
128
|
/**
|
package/node-esm/wasm_bg.js
CHANGED
|
@@ -252,7 +252,7 @@ export class Quillmark {
|
|
|
252
252
|
* Parse markdown into a ParsedDocument
|
|
253
253
|
*
|
|
254
254
|
* This is the first step in the workflow. The returned ParsedDocument contains
|
|
255
|
-
* the parsed YAML frontmatter fields and the
|
|
255
|
+
* the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
|
|
256
256
|
* @param {string} markdown
|
|
257
257
|
* @returns {ParsedDocument}
|
|
258
258
|
*/
|
|
@@ -401,8 +401,9 @@ export class Quillmark {
|
|
|
401
401
|
/**
|
|
402
402
|
* Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
|
|
403
403
|
*
|
|
404
|
+
* Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
|
|
404
405
|
* Uses the Quill specified in options.quill_name if provided,
|
|
405
|
-
* otherwise infers it from the ParsedDocument's
|
|
406
|
+
* otherwise infers it from the ParsedDocument's quill_ref field.
|
|
406
407
|
* @param {ParsedDocument} parsed
|
|
407
408
|
* @param {RenderOptions} opts
|
|
408
409
|
* @returns {RenderResult}
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|