@quillmark/wasm 0.12.0 → 0.13.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.
- package/README.md +3 -3
- package/package.json +1 -1
- package/wasm.d.ts +22 -22
- package/wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -70,9 +70,9 @@ const engine = new Quillmark();
|
|
|
70
70
|
const quillJson = {
|
|
71
71
|
files: {
|
|
72
72
|
'Quill.toml': {
|
|
73
|
-
contents: '[Quill]\nname = "my-quill"\nbackend = "typst"\
|
|
73
|
+
contents: '[Quill]\nname = "my-quill"\nbackend = "typst"\nplate_file = "plate.typ"\ndescription = "My template"\n'
|
|
74
74
|
},
|
|
75
|
-
'
|
|
75
|
+
'plate.typ': {
|
|
76
76
|
contents: '= {{ title }}\n\n{{ body | Content }}'
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -113,7 +113,7 @@ The main workflow for rendering documents:
|
|
|
113
113
|
Additional methods for managing the engine and debugging:
|
|
114
114
|
|
|
115
115
|
- `new Quillmark()` - Create a new engine instance
|
|
116
|
-
- `
|
|
116
|
+
- `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
117
|
- `listQuills()` - List all registered Quill names
|
|
118
118
|
- `unregisterQuill(name)` - Unregister a Quill to free memory
|
|
119
119
|
|
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -4,27 +4,42 @@
|
|
|
4
4
|
* Initialize the WASM module with panic hooks for better error messages
|
|
5
5
|
*/
|
|
6
6
|
export function init(): void;
|
|
7
|
+
export interface Location {
|
|
8
|
+
file: string;
|
|
9
|
+
line: number;
|
|
10
|
+
column: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ParsedDocument {
|
|
14
|
+
fields: Record<string, any>;
|
|
15
|
+
quillTag: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type Severity = "error" | "warning" | "note";
|
|
19
|
+
|
|
7
20
|
export interface Artifact {
|
|
8
21
|
format: OutputFormat;
|
|
9
22
|
bytes: Uint8Array;
|
|
10
23
|
mimeType: string;
|
|
11
24
|
}
|
|
12
25
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
export interface Diagnostic {
|
|
27
|
+
severity: Severity;
|
|
28
|
+
code?: string;
|
|
29
|
+
message: string;
|
|
30
|
+
location?: Location;
|
|
31
|
+
hint?: string;
|
|
32
|
+
sourceChain: string[];
|
|
18
33
|
}
|
|
19
34
|
|
|
35
|
+
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
36
|
+
|
|
20
37
|
export interface RenderOptions {
|
|
21
38
|
format?: OutputFormat;
|
|
22
39
|
assets?: Record<string, Uint8Array | number[]>;
|
|
23
40
|
quillName?: string;
|
|
24
41
|
}
|
|
25
42
|
|
|
26
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
27
|
-
|
|
28
43
|
export interface QuillInfo {
|
|
29
44
|
name: string;
|
|
30
45
|
backend: string;
|
|
@@ -43,21 +58,6 @@ export interface RenderResult {
|
|
|
43
58
|
renderTimeMs: number;
|
|
44
59
|
}
|
|
45
60
|
|
|
46
|
-
export interface Diagnostic {
|
|
47
|
-
severity: Severity;
|
|
48
|
-
code?: string;
|
|
49
|
-
message: string;
|
|
50
|
-
location?: Location;
|
|
51
|
-
hint?: string;
|
|
52
|
-
sourceChain: string[];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface Location {
|
|
56
|
-
file: string;
|
|
57
|
-
line: number;
|
|
58
|
-
column: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
61
|
/**
|
|
62
62
|
* Quillmark WASM Engine
|
|
63
63
|
*
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|