@quillmark/wasm 0.51.1 → 0.53.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 CHANGED
@@ -106,7 +106,7 @@ The main workflow for rendering documents:
106
106
 
107
107
  - `static parseMarkdown(markdown)` - Parse markdown into a ParsedDocument (Step 1)
108
108
  - `registerQuill(quillJson)` - Register a Quill template bundle from JSON (Step 2)
109
- - `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)
109
+ - `render(parsedDoc, options)` - Render a ParsedDocument to final artifacts using the required `QUILL` reference parsed from the document (Step 4)
110
110
 
111
111
  ### Utility Methods
112
112
 
@@ -124,7 +124,6 @@ Additional methods for managing the engine and debugging:
124
124
  ```typescript
125
125
  type RenderOptions = {
126
126
  format?: 'pdf' | 'svg' | 'txt'
127
- quillRef?: string // Override quillRef from ParsedDocument
128
127
  assets?: Record<string, Uint8Array | number[]>
129
128
  }
130
129
  ```
@@ -136,7 +135,7 @@ Returned by `parseMarkdown()`:
136
135
  ```typescript
137
136
  {
138
137
  fields: object, // YAML frontmatter fields
139
- quillRef: string // Quill reference from QUILL field (or "__default__")
138
+ quillRef: string // Quill reference from required QUILL field
140
139
  }
141
140
  ```
142
141
 
package/bundler/wasm.d.ts CHANGED
@@ -6,9 +6,7 @@ export interface Artifact {
6
6
  mimeType: string;
7
7
  }
8
8
 
9
- export interface CompileOptions {
10
- quillRef?: string;
11
- }
9
+ export interface CompileOptions {}
12
10
 
13
11
  export interface Diagnostic {
14
12
  severity: Severity;
@@ -44,7 +42,6 @@ export interface QuillInfo {
44
42
  export interface RenderOptions {
45
43
  format?: OutputFormat;
46
44
  assets?: Record<string, Uint8Array | number[]>;
47
- quillRef?: string;
48
45
  ppi?: number;
49
46
  }
50
47
 
@@ -105,7 +102,7 @@ export class Quillmark {
105
102
  * surface input errors quickly. Returns successfully on valid input,
106
103
  * or throws an error with diagnostic payload on failure.
107
104
  *
108
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
105
+ * The quill name is read from the markdown's required QUILL tag.
109
106
  *
110
107
  * This is useful for fast feedback loops in LLM-driven document generation.
111
108
  */
@@ -139,7 +136,7 @@ export class Quillmark {
139
136
  * Parse markdown into a ParsedDocument
140
137
  *
141
138
  * This is the first step in the workflow. The returned ParsedDocument contains
142
- * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
139
+ * the parsed YAML frontmatter fields and the quill_ref from QUILL.
143
140
  */
144
141
  static parseMarkdown(markdown: string): ParsedDocument;
145
142
  /**
@@ -152,9 +149,7 @@ export class Quillmark {
152
149
  /**
153
150
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
154
151
  *
155
- * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
156
- * Uses the Quill specified in options.quill_ref if provided,
157
- * otherwise infers it from the ParsedDocument's quill_ref field.
152
+ * Uses the Quill specified in the ParsedDocument's quill_ref field.
158
153
  */
159
154
  render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
160
155
  /**
@@ -119,7 +119,7 @@ export class Quillmark {
119
119
  * surface input errors quickly. Returns successfully on valid input,
120
120
  * or throws an error with diagnostic payload on failure.
121
121
  *
122
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
122
+ * The quill name is read from the markdown's required QUILL tag.
123
123
  *
124
124
  * This is useful for fast feedback loops in LLM-driven document generation.
125
125
  * @param {string} markdown
@@ -222,7 +222,7 @@ export class Quillmark {
222
222
  * Parse markdown into a ParsedDocument
223
223
  *
224
224
  * This is the first step in the workflow. The returned ParsedDocument contains
225
- * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
225
+ * the parsed YAML frontmatter fields and the quill_ref from QUILL.
226
226
  * @param {string} markdown
227
227
  * @returns {ParsedDocument}
228
228
  */
@@ -269,9 +269,7 @@ export class Quillmark {
269
269
  /**
270
270
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
271
271
  *
272
- * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
273
- * Uses the Quill specified in options.quill_ref if provided,
274
- * otherwise infers it from the ParsedDocument's quill_ref field.
272
+ * Uses the Quill specified in the ParsedDocument's quill_ref field.
275
273
  * @param {ParsedDocument} parsed
276
274
  * @param {RenderOptions} opts
277
275
  * @returns {RenderResult}
Binary file
@@ -6,9 +6,7 @@ export interface Artifact {
6
6
  mimeType: string;
7
7
  }
8
8
 
9
- export interface CompileOptions {
10
- quillRef?: string;
11
- }
9
+ export interface CompileOptions {}
12
10
 
13
11
  export interface Diagnostic {
14
12
  severity: Severity;
@@ -44,7 +42,6 @@ export interface QuillInfo {
44
42
  export interface RenderOptions {
45
43
  format?: OutputFormat;
46
44
  assets?: Record<string, Uint8Array | number[]>;
47
- quillRef?: string;
48
45
  ppi?: number;
49
46
  }
50
47
 
@@ -105,7 +102,7 @@ export class Quillmark {
105
102
  * surface input errors quickly. Returns successfully on valid input,
106
103
  * or throws an error with diagnostic payload on failure.
107
104
  *
108
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
105
+ * The quill name is read from the markdown's required QUILL tag.
109
106
  *
110
107
  * This is useful for fast feedback loops in LLM-driven document generation.
111
108
  */
@@ -139,7 +136,7 @@ export class Quillmark {
139
136
  * Parse markdown into a ParsedDocument
140
137
  *
141
138
  * This is the first step in the workflow. The returned ParsedDocument contains
142
- * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
139
+ * the parsed YAML frontmatter fields and the quill_ref from QUILL.
143
140
  */
144
141
  static parseMarkdown(markdown: string): ParsedDocument;
145
142
  /**
@@ -152,9 +149,7 @@ export class Quillmark {
152
149
  /**
153
150
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
154
151
  *
155
- * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
156
- * Uses the Quill specified in options.quill_ref if provided,
157
- * otherwise infers it from the ParsedDocument's quill_ref field.
152
+ * Uses the Quill specified in the ParsedDocument's quill_ref field.
158
153
  */
159
154
  render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
160
155
  /**
package/node-esm/wasm.js CHANGED
@@ -121,7 +121,7 @@ export class Quillmark {
121
121
  * surface input errors quickly. Returns successfully on valid input,
122
122
  * or throws an error with diagnostic payload on failure.
123
123
  *
124
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
124
+ * The quill name is read from the markdown's required QUILL tag.
125
125
  *
126
126
  * This is useful for fast feedback loops in LLM-driven document generation.
127
127
  * @param {string} markdown
@@ -224,7 +224,7 @@ export class Quillmark {
224
224
  * Parse markdown into a ParsedDocument
225
225
  *
226
226
  * This is the first step in the workflow. The returned ParsedDocument contains
227
- * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
227
+ * the parsed YAML frontmatter fields and the quill_ref from QUILL.
228
228
  * @param {string} markdown
229
229
  * @returns {ParsedDocument}
230
230
  */
@@ -271,9 +271,7 @@ export class Quillmark {
271
271
  /**
272
272
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
273
273
  *
274
- * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
275
- * Uses the Quill specified in options.quill_ref if provided,
276
- * otherwise infers it from the ParsedDocument's quill_ref field.
274
+ * Uses the Quill specified in the ParsedDocument's quill_ref field.
277
275
  * @param {ParsedDocument} parsed
278
276
  * @param {RenderOptions} opts
279
277
  * @returns {RenderResult}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.51.1",
3
+ "version": "0.53.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",