@ox-content/wasm 3.0.0 → 3.1.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.
@@ -49,6 +49,10 @@ export class WasmParserOptions {
49
49
  * Enables the GFM convenience profile.
50
50
  */
51
51
  set gfm(value: boolean);
52
+ /**
53
+ * Enables Pandoc-style `{#id .class}` heading attribute blocks.
54
+ */
55
+ set headingAttributes(value: boolean);
52
56
  /**
53
57
  * Appends a visible heading permalink.
54
58
  */
@@ -101,6 +105,10 @@ export class WasmParserOptions {
101
105
  * Sets the maximum heading depth included in inline TOCs.
102
106
  */
103
107
  set tocMaxDepth(value: number);
108
+ /**
109
+ * Enables Obsidian-style wiki links as link nodes.
110
+ */
111
+ set wikiLinks(value: boolean);
104
112
  }
105
113
 
106
114
  /**
@@ -134,6 +142,7 @@ export interface InitOutput {
134
142
  readonly wasmparseroptions_set_definition_lists: (a: number, b: number) => void;
135
143
  readonly wasmparseroptions_set_footnotes: (a: number, b: number) => void;
136
144
  readonly wasmparseroptions_set_gfm: (a: number, b: number) => void;
145
+ readonly wasmparseroptions_set_heading_attributes: (a: number, b: number) => void;
137
146
  readonly wasmparseroptions_set_heading_permalinks: (a: number, b: number) => void;
138
147
  readonly wasmparseroptions_set_link_target_blank: (a: number, b: number) => void;
139
148
  readonly wasmparseroptions_set_math: (a: number, b: number) => void;
@@ -147,6 +156,7 @@ export interface InitOutput {
147
156
  readonly wasmparseroptions_set_tables: (a: number, b: number) => void;
148
157
  readonly wasmparseroptions_set_task_lists: (a: number, b: number) => void;
149
158
  readonly wasmparseroptions_set_toc_max_depth: (a: number, b: number) => void;
159
+ readonly wasmparseroptions_set_wiki_links: (a: number, b: number) => void;
150
160
  readonly __wbindgen_export: (a: number, b: number) => number;
151
161
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
152
162
  readonly __wbindgen_export3: (a: number) => void;
@@ -84,6 +84,13 @@ export class WasmParserOptions {
84
84
  set gfm(value) {
85
85
  wasm.wasmparseroptions_set_gfm(this.__wbg_ptr, value);
86
86
  }
87
+ /**
88
+ * Enables Pandoc-style `{#id .class}` heading attribute blocks.
89
+ * @param {boolean} value
90
+ */
91
+ set headingAttributes(value) {
92
+ wasm.wasmparseroptions_set_heading_attributes(this.__wbg_ptr, value);
93
+ }
87
94
  /**
88
95
  * Appends a visible heading permalink.
89
96
  * @param {boolean} value
@@ -175,6 +182,13 @@ export class WasmParserOptions {
175
182
  set tocMaxDepth(value) {
176
183
  wasm.wasmparseroptions_set_toc_max_depth(this.__wbg_ptr, value);
177
184
  }
185
+ /**
186
+ * Enables Obsidian-style wiki links as link nodes.
187
+ * @param {boolean} value
188
+ */
189
+ set wikiLinks(value) {
190
+ wasm.wasmparseroptions_set_wiki_links(this.__wbg_ptr, value);
191
+ }
178
192
  }
179
193
  if (Symbol.dispose) WasmParserOptions.prototype[Symbol.dispose] = WasmParserOptions.prototype.free;
180
194
 
Binary file
@@ -13,6 +13,7 @@ export const wasmparseroptions_set_autolinks: (a: number, b: number) => void;
13
13
  export const wasmparseroptions_set_definition_lists: (a: number, b: number) => void;
14
14
  export const wasmparseroptions_set_footnotes: (a: number, b: number) => void;
15
15
  export const wasmparseroptions_set_gfm: (a: number, b: number) => void;
16
+ export const wasmparseroptions_set_heading_attributes: (a: number, b: number) => void;
16
17
  export const wasmparseroptions_set_heading_permalinks: (a: number, b: number) => void;
17
18
  export const wasmparseroptions_set_link_target_blank: (a: number, b: number) => void;
18
19
  export const wasmparseroptions_set_math: (a: number, b: number) => void;
@@ -26,6 +27,7 @@ export const wasmparseroptions_set_superscript: (a: number, b: number) => void;
26
27
  export const wasmparseroptions_set_tables: (a: number, b: number) => void;
27
28
  export const wasmparseroptions_set_task_lists: (a: number, b: number) => void;
28
29
  export const wasmparseroptions_set_toc_max_depth: (a: number, b: number) => void;
30
+ export const wasmparseroptions_set_wiki_links: (a: number, b: number) => void;
29
31
  export const __wbindgen_export: (a: number, b: number) => number;
30
32
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
31
33
  export const __wbindgen_export3: (a: number) => void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ox-content/wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for Ox Content - Browser-ready Markdown parser",
5
- "version": "3.0.0",
5
+ "version": "3.1.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",