@ox-content/wasm 3.0.0-alpha.5 → 3.0.0-alpha.6

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.
@@ -14,8 +14,8 @@ export class WasmParserOptions {
14
14
  * Creates options with all Markdown extension flags disabled.
15
15
  *
16
16
  * Defaults: `gfm = false`, `mdx = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
17
- * `autolinkPatterns = ["http://", "https://"]`, and
18
- * `autolinkTargetBlank = true`.
17
+ * `autolinkPatterns = ["http://", "https://"]`,
18
+ * `autolinkTargetBlank = true`, and `semanticFootnotes = false`.
19
19
  */
20
20
  constructor();
21
21
  /**
@@ -57,12 +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);
60
66
  /**
61
67
  * Enables MDX JSX, ESM, and expression nodes.
62
68
  *
63
69
  * Default: `false`.
64
70
  */
65
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);
66
78
  /**
67
79
  * Enables GFM strikethrough spans.
68
80
  *
@@ -119,7 +131,9 @@ export interface InitOutput {
119
131
  readonly wasmparseroptions_set_autolinks: (a: number, b: number) => void;
120
132
  readonly wasmparseroptions_set_footnotes: (a: number, b: number) => void;
121
133
  readonly wasmparseroptions_set_gfm: (a: number, b: number) => void;
134
+ readonly wasmparseroptions_set_heading_permalinks: (a: number, b: number) => void;
122
135
  readonly wasmparseroptions_set_mdx: (a: number, b: number) => void;
136
+ readonly wasmparseroptions_set_semantic_footnotes: (a: number, b: number) => void;
123
137
  readonly wasmparseroptions_set_strikethrough: (a: number, b: number) => void;
124
138
  readonly wasmparseroptions_set_tables: (a: number, b: number) => void;
125
139
  readonly wasmparseroptions_set_task_lists: (a: number, b: number) => void;
@@ -21,8 +21,8 @@ export class WasmParserOptions {
21
21
  * Creates options with all Markdown extension flags disabled.
22
22
  *
23
23
  * Defaults: `gfm = false`, `mdx = false`, `tocMaxDepth = 3`, `autolinkUrls = true`,
24
- * `autolinkPatterns = ["http://", "https://"]`, and
25
- * `autolinkTargetBlank = 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,15 @@ 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
+ }
92
101
  /**
93
102
  * Enables MDX JSX, ESM, and expression nodes.
94
103
  *
@@ -98,6 +107,15 @@ export class WasmParserOptions {
98
107
  set mdx(value) {
99
108
  wasm.wasmparseroptions_set_mdx(this.__wbg_ptr, value);
100
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
+ }
101
119
  /**
102
120
  * Enables GFM strikethrough spans.
103
121
  *
Binary file
@@ -12,7 +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;
15
16
  export const wasmparseroptions_set_mdx: (a: number, b: number) => void;
17
+ export const wasmparseroptions_set_semantic_footnotes: (a: number, b: number) => void;
16
18
  export const wasmparseroptions_set_strikethrough: (a: number, b: number) => void;
17
19
  export const wasmparseroptions_set_tables: (a: number, b: number) => void;
18
20
  export const wasmparseroptions_set_task_lists: (a: number, b: 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-alpha.5",
5
+ "version": "3.0.0-alpha.6",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",