ironmark 1.1.13 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ironmark",
3
- "version": "1.1.13",
3
+ "version": "1.2.0",
4
4
  "description": "Very fast markdown parser in Rust, consumable from JavaScript/TypeScript via WebAssembly",
5
5
  "keywords": [
6
6
  "markdown",
package/wasm/index.d.ts CHANGED
@@ -42,3 +42,12 @@ export declare function init(input?: string | URL | WebAssembly.Module): Promise
42
42
  * @returns HTML string.
43
43
  */
44
44
  export declare function parse(markdown: MarkdownInput, options?: ParseOptions): string;
45
+
46
+ /**
47
+ * Parse Markdown and return the block-level AST as a JSON string.
48
+ *
49
+ * @param markdown - Markdown source (string or binary).
50
+ * @param options - Optional parsing options.
51
+ * @returns JSON string representing the AST.
52
+ */
53
+ export declare function parseToAst(markdown: MarkdownInput, options?: ParseOptions): string;