@ox-content/wasm 2.90.0 → 3.0.0-alpha.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/ox_content_wasm.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class WasmParserOptions {
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates options with all Markdown extension flags disabled.
|
|
15
15
|
*
|
|
16
|
-
* Defaults: `gfm = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
|
|
16
|
+
* Defaults: `gfm = false`, `mdx = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
|
|
17
17
|
* `autolinkPatterns = ["http://", "https://"]`, and
|
|
18
18
|
* `autolinkTargetBlank = true`.
|
|
19
19
|
*/
|
|
@@ -57,6 +57,12 @@ export class WasmParserOptions {
|
|
|
57
57
|
* Default: `true`.
|
|
58
58
|
*/
|
|
59
59
|
set gfm(value: boolean);
|
|
60
|
+
/**
|
|
61
|
+
* Enables MDX JSX, ESM, and expression nodes.
|
|
62
|
+
*
|
|
63
|
+
* Default: `false`.
|
|
64
|
+
*/
|
|
65
|
+
set mdx(value: boolean);
|
|
60
66
|
/**
|
|
61
67
|
* Enables GFM strikethrough spans.
|
|
62
68
|
*
|
|
@@ -113,6 +119,7 @@ export interface InitOutput {
|
|
|
113
119
|
readonly wasmparseroptions_set_autolinks: (a: number, b: number) => void;
|
|
114
120
|
readonly wasmparseroptions_set_footnotes: (a: number, b: number) => void;
|
|
115
121
|
readonly wasmparseroptions_set_gfm: (a: number, b: number) => void;
|
|
122
|
+
readonly wasmparseroptions_set_mdx: (a: number, b: number) => void;
|
|
116
123
|
readonly wasmparseroptions_set_strikethrough: (a: number, b: number) => void;
|
|
117
124
|
readonly wasmparseroptions_set_tables: (a: number, b: number) => void;
|
|
118
125
|
readonly wasmparseroptions_set_task_lists: (a: number, b: number) => void;
|
package/ox_content_wasm.js
CHANGED
|
@@ -20,7 +20,7 @@ export class WasmParserOptions {
|
|
|
20
20
|
/**
|
|
21
21
|
* Creates options with all Markdown extension flags disabled.
|
|
22
22
|
*
|
|
23
|
-
* Defaults: `gfm = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
|
|
23
|
+
* Defaults: `gfm = false`, `mdx = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
|
|
24
24
|
* `autolinkPatterns = ["http://", "https://"]`, and
|
|
25
25
|
* `autolinkTargetBlank = true`.
|
|
26
26
|
*/
|
|
@@ -89,6 +89,15 @@ export class WasmParserOptions {
|
|
|
89
89
|
set gfm(value) {
|
|
90
90
|
wasm.wasmparseroptions_set_gfm(this.__wbg_ptr, value);
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Enables MDX JSX, ESM, and expression nodes.
|
|
94
|
+
*
|
|
95
|
+
* Default: `false`.
|
|
96
|
+
* @param {boolean} value
|
|
97
|
+
*/
|
|
98
|
+
set mdx(value) {
|
|
99
|
+
wasm.wasmparseroptions_set_mdx(this.__wbg_ptr, value);
|
|
100
|
+
}
|
|
92
101
|
/**
|
|
93
102
|
* Enables GFM strikethrough spans.
|
|
94
103
|
*
|
package/ox_content_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -12,6 +12,7 @@ export const wasmparseroptions_set_autolink_urls: (a: number, b: number) => void
|
|
|
12
12
|
export const wasmparseroptions_set_autolinks: (a: number, b: number) => void;
|
|
13
13
|
export const wasmparseroptions_set_footnotes: (a: number, b: number) => void;
|
|
14
14
|
export const wasmparseroptions_set_gfm: (a: number, b: number) => void;
|
|
15
|
+
export const wasmparseroptions_set_mdx: (a: number, b: number) => void;
|
|
15
16
|
export const wasmparseroptions_set_strikethrough: (a: number, b: number) => void;
|
|
16
17
|
export const wasmparseroptions_set_tables: (a: number, b: number) => void;
|
|
17
18
|
export const wasmparseroptions_set_task_lists: (a: number, b: number) => void;
|
package/package.json
CHANGED