@quillmark/wasm 0.38.0 → 0.39.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
@@ -107,7 +107,6 @@ The main workflow for rendering documents:
107
107
 
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
- - `getQuillInfo(name)` - Get shallow Quill metadata and configuration options (Step 3)
111
110
  - `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
111
 
113
112
  ### Utility Methods
@@ -115,17 +114,19 @@ The main workflow for rendering documents:
115
114
  Additional methods for managing the engine and debugging:
116
115
 
117
116
  - `new Quillmark()` - Create a new engine instance
118
- - `processPlate(quillName, markdown)` - Debug helper that processes markdown through the template engine and returns the intermediate template source code (e.g., Typst, LaTeX) without compiling to final artifacts. Useful for inspecting template output during development.
117
+ - `renderQuill(RenderOptions, markdown)` - Load markdown and map it onto an internally fetched Quill, resolving to `RenderResult` including output format, the artifact byte slice buffer, and time to render
118
+ - `processPlate(quillRef, markdown)` - Debug helper that processes markdown through the template engine and returns the intermediate template source code (e.g., Typst, LaTeX) without compiling to final artifacts. Useful for inspecting template output during development.
119
+ - `fetchQuillInfo(quillRef)` - Fetches metadata and schema about an available Quill from the configured registry without loading the full filesystem or rendering context.
119
120
  - `listQuills()` - List all registered Quill names
120
121
  - `unregisterQuill(name)` - Unregister a Quill to free memory
121
122
 
122
123
  ### Render Options
123
124
 
124
125
  ```typescript
125
- {
126
- format?: 'pdf' | 'svg' | 'txt', // Output format (default: 'pdf')
127
- assets?: Record<string, Uint8Array>, // Additional assets to inject as plain object (not Map)
128
- quillName?: string // Override quillRef from ParsedDocument
126
+ type RenderOptions = {
127
+ format?: 'pdf' | 'svg' | 'txt'
128
+ quillRef?: string // Override quillRef from ParsedDocument
129
+ assets?: Record<string, Uint8Array | number[]>
129
130
  }
130
131
  ```
131
132
 
package/bundler/wasm.d.ts CHANGED
@@ -55,7 +55,7 @@ export interface ParsedDocument {
55
55
  export interface RenderOptions {
56
56
  format?: OutputFormat;
57
57
  assets?: Record<string, Uint8Array | number[]>;
58
- quillName?: string;
58
+ quillRef?: string;
59
59
  }
60
60
 
61
61
  /**
@@ -121,7 +121,7 @@ export class Quillmark {
121
121
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
122
122
  *
123
123
  * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
124
- * Uses the Quill specified in options.quill_name if provided,
124
+ * Uses the Quill specified in options.quill_ref if provided,
125
125
  * otherwise infers it from the ParsedDocument's quill_ref field.
126
126
  */
127
127
  render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
@@ -408,7 +408,7 @@ export class Quillmark {
408
408
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
409
409
  *
410
410
  * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
411
- * Uses the Quill specified in options.quill_name if provided,
411
+ * Uses the Quill specified in options.quill_ref if provided,
412
412
  * otherwise infers it from the ParsedDocument's quill_ref field.
413
413
  * @param {ParsedDocument} parsed
414
414
  * @param {RenderOptions} opts
Binary file
@@ -55,7 +55,7 @@ export interface ParsedDocument {
55
55
  export interface RenderOptions {
56
56
  format?: OutputFormat;
57
57
  assets?: Record<string, Uint8Array | number[]>;
58
- quillName?: string;
58
+ quillRef?: string;
59
59
  }
60
60
 
61
61
  /**
@@ -121,7 +121,7 @@ export class Quillmark {
121
121
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
122
122
  *
123
123
  * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
124
- * Uses the Quill specified in options.quill_name if provided,
124
+ * Uses the Quill specified in options.quill_ref if provided,
125
125
  * otherwise infers it from the ParsedDocument's quill_ref field.
126
126
  */
127
127
  render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
@@ -402,7 +402,7 @@ export class Quillmark {
402
402
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
403
403
  *
404
404
  * Note that the quill reference is optional to specify and can be inferred from the markdown content's frontmatter.
405
- * Uses the Quill specified in options.quill_name if provided,
405
+ * Uses the Quill specified in options.quill_ref if provided,
406
406
  * otherwise infers it from the ParsedDocument's quill_ref field.
407
407
  * @param {ParsedDocument} parsed
408
408
  * @param {RenderOptions} opts
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",