@kreuzberg/html-to-markdown-node 3.4.0-rc.1 → 3.4.0-rc.2

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.
Files changed (3) hide show
  1. package/index.d.ts +16 -0
  2. package/index.js +1 -0
  3. package/package.json +10 -10
package/index.d.ts CHANGED
@@ -9,6 +9,22 @@ export declare class JsConversionOptionsBuilder {
9
9
  build(): JsConversionOptions
10
10
  }
11
11
 
12
+ /**
13
+ * Convert HTML to Markdown, returning a [`JsConversionResult`] with content, metadata, images,
14
+ * and warnings.
15
+ *
16
+ * # Arguments
17
+ *
18
+ * * `html` - The HTML string to convert
19
+ * * `options` - Optional conversion options (defaults to `ConversionOptions::default()`)
20
+ * * `visitor` - Optional visitor object implementing the `JsHtmlVisitor` interface
21
+ *
22
+ * # Errors
23
+ *
24
+ * Returns an error if HTML parsing fails or if the input contains invalid UTF-8.
25
+ */
26
+ export declare function convert(html: string, options?: JsConversionOptions | undefined | null, visitor?: object | undefined | null): JsConversionResult
27
+
12
28
  export interface JsAnnotationKind {
13
29
  annotation_type: string
14
30
  url?: string
package/index.js CHANGED
@@ -576,6 +576,7 @@ if (!nativeBinding) {
576
576
  }
577
577
 
578
578
  module.exports = nativeBinding
579
+ module.exports.convert = nativeBinding.convert
579
580
  module.exports.JsConversionOptionsBuilder = nativeBinding.JsConversionOptionsBuilder
580
581
  module.exports.JsCodeBlockStyle = nativeBinding.JsCodeBlockStyle
581
582
  module.exports.JsHeadingStyle = nativeBinding.JsHeadingStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/html-to-markdown-node",
3
- "version": "3.4.0-rc.1",
3
+ "version": "3.4.0-rc.2",
4
4
  "description": "High-performance HTML to Markdown converter - Node.js native bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -56,14 +56,14 @@
56
56
  "@napi-rs/cli": "^3.6.2"
57
57
  },
58
58
  "optionalDependencies": {
59
- "@kreuzberg/html-to-markdown-node-darwin-arm64": "3.4.0-rc.1",
60
- "@kreuzberg/html-to-markdown-node-darwin-x64": "3.4.0-rc.1",
61
- "@kreuzberg/html-to-markdown-node-linux-arm-gnueabihf": "3.4.0-rc.1",
62
- "@kreuzberg/html-to-markdown-node-linux-arm64-gnu": "3.4.0-rc.1",
63
- "@kreuzberg/html-to-markdown-node-linux-arm64-musl": "3.4.0-rc.1",
64
- "@kreuzberg/html-to-markdown-node-linux-x64-gnu": "3.4.0-rc.1",
65
- "@kreuzberg/html-to-markdown-node-linux-x64-musl": "3.4.0-rc.1",
66
- "@kreuzberg/html-to-markdown-node-win32-arm64-msvc": "3.4.0-rc.1",
67
- "@kreuzberg/html-to-markdown-node-win32-x64-msvc": "3.4.0-rc.1"
59
+ "@kreuzberg/html-to-markdown-node-darwin-arm64": "3.4.0-rc.2",
60
+ "@kreuzberg/html-to-markdown-node-darwin-x64": "3.4.0-rc.2",
61
+ "@kreuzberg/html-to-markdown-node-linux-arm-gnueabihf": "3.4.0-rc.2",
62
+ "@kreuzberg/html-to-markdown-node-linux-arm64-gnu": "3.4.0-rc.2",
63
+ "@kreuzberg/html-to-markdown-node-linux-arm64-musl": "3.4.0-rc.2",
64
+ "@kreuzberg/html-to-markdown-node-linux-x64-gnu": "3.4.0-rc.2",
65
+ "@kreuzberg/html-to-markdown-node-linux-x64-musl": "3.4.0-rc.2",
66
+ "@kreuzberg/html-to-markdown-node-win32-arm64-msvc": "3.4.0-rc.2",
67
+ "@kreuzberg/html-to-markdown-node-win32-x64-msvc": "3.4.0-rc.2"
68
68
  }
69
69
  }