@ox-content/wasm 2.90.0 → 3.0.0-alpha.10
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 +24 -3
- package/ox_content_wasm.js +30 -3
- package/ox_content_wasm_bg.wasm +0 -0
- package/ox_content_wasm_bg.wasm.d.ts +3 -0
- package/package.json +1 -1
package/ox_content_wasm.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ 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`,
|
|
17
|
-
* `autolinkPatterns = ["http://", "https://"]`,
|
|
18
|
-
* `autolinkTargetBlank = true`.
|
|
16
|
+
* Defaults: `gfm = false`, `mdx = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
|
|
17
|
+
* `autolinkPatterns = ["http://", "https://"]`,
|
|
18
|
+
* `autolinkTargetBlank = true`, and `semanticFootnotes = false`.
|
|
19
19
|
*/
|
|
20
20
|
constructor();
|
|
21
21
|
/**
|
|
@@ -57,6 +57,24 @@ export class WasmParserOptions {
|
|
|
57
57
|
* Default: `true`.
|
|
58
58
|
*/
|
|
59
59
|
set gfm(value: boolean);
|
|
60
|
+
/**
|
|
61
|
+
* Appends a visible heading permalink (`<a class="header-anchor" href="#id">`).
|
|
62
|
+
*
|
|
63
|
+
* Default: `false`.
|
|
64
|
+
*/
|
|
65
|
+
set headingPermalinks(value: boolean);
|
|
66
|
+
/**
|
|
67
|
+
* Enables MDX JSX, ESM, and expression nodes.
|
|
68
|
+
*
|
|
69
|
+
* Default: `false`.
|
|
70
|
+
*/
|
|
71
|
+
set mdx(value: boolean);
|
|
72
|
+
/**
|
|
73
|
+
* Renders footnotes as a semantic ordered section with numeric markers.
|
|
74
|
+
*
|
|
75
|
+
* Default: `false`.
|
|
76
|
+
*/
|
|
77
|
+
set semanticFootnotes(value: boolean);
|
|
60
78
|
/**
|
|
61
79
|
* Enables GFM strikethrough spans.
|
|
62
80
|
*
|
|
@@ -113,6 +131,9 @@ export interface InitOutput {
|
|
|
113
131
|
readonly wasmparseroptions_set_autolinks: (a: number, b: number) => void;
|
|
114
132
|
readonly wasmparseroptions_set_footnotes: (a: number, b: number) => void;
|
|
115
133
|
readonly wasmparseroptions_set_gfm: (a: number, b: number) => void;
|
|
134
|
+
readonly wasmparseroptions_set_heading_permalinks: (a: number, b: number) => void;
|
|
135
|
+
readonly wasmparseroptions_set_mdx: (a: number, b: number) => void;
|
|
136
|
+
readonly wasmparseroptions_set_semantic_footnotes: (a: number, b: number) => void;
|
|
116
137
|
readonly wasmparseroptions_set_strikethrough: (a: number, b: number) => void;
|
|
117
138
|
readonly wasmparseroptions_set_tables: (a: number, b: number) => void;
|
|
118
139
|
readonly wasmparseroptions_set_task_lists: (a: number, b: number) => void;
|
package/ox_content_wasm.js
CHANGED
|
@@ -20,9 +20,9 @@ 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`,
|
|
24
|
-
* `autolinkPatterns = ["http://", "https://"]`,
|
|
25
|
-
* `autolinkTargetBlank = true`.
|
|
23
|
+
* Defaults: `gfm = false`, `mdx = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
|
|
24
|
+
* `autolinkPatterns = ["http://", "https://"]`,
|
|
25
|
+
* `autolinkTargetBlank = true`, and `semanticFootnotes = false`.
|
|
26
26
|
*/
|
|
27
27
|
constructor() {
|
|
28
28
|
const ret = wasm.wasmparseroptions_new();
|
|
@@ -89,6 +89,33 @@ export class WasmParserOptions {
|
|
|
89
89
|
set gfm(value) {
|
|
90
90
|
wasm.wasmparseroptions_set_gfm(this.__wbg_ptr, value);
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Appends a visible heading permalink (`<a class="header-anchor" href="#id">`).
|
|
94
|
+
*
|
|
95
|
+
* Default: `false`.
|
|
96
|
+
* @param {boolean} value
|
|
97
|
+
*/
|
|
98
|
+
set headingPermalinks(value) {
|
|
99
|
+
wasm.wasmparseroptions_set_heading_permalinks(this.__wbg_ptr, value);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Enables MDX JSX, ESM, and expression nodes.
|
|
103
|
+
*
|
|
104
|
+
* Default: `false`.
|
|
105
|
+
* @param {boolean} value
|
|
106
|
+
*/
|
|
107
|
+
set mdx(value) {
|
|
108
|
+
wasm.wasmparseroptions_set_mdx(this.__wbg_ptr, value);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Renders footnotes as a semantic ordered section with numeric markers.
|
|
112
|
+
*
|
|
113
|
+
* Default: `false`.
|
|
114
|
+
* @param {boolean} value
|
|
115
|
+
*/
|
|
116
|
+
set semanticFootnotes(value) {
|
|
117
|
+
wasm.wasmparseroptions_set_semantic_footnotes(this.__wbg_ptr, value);
|
|
118
|
+
}
|
|
92
119
|
/**
|
|
93
120
|
* Enables GFM strikethrough spans.
|
|
94
121
|
*
|
package/ox_content_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -12,6 +12,9 @@ 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_heading_permalinks: (a: number, b: number) => void;
|
|
16
|
+
export const wasmparseroptions_set_mdx: (a: number, b: number) => void;
|
|
17
|
+
export const wasmparseroptions_set_semantic_footnotes: (a: number, b: number) => void;
|
|
15
18
|
export const wasmparseroptions_set_strikethrough: (a: number, b: number) => void;
|
|
16
19
|
export const wasmparseroptions_set_tables: (a: number, b: number) => void;
|
|
17
20
|
export const wasmparseroptions_set_task_lists: (a: number, b: number) => void;
|
package/package.json
CHANGED