mdream 1.5.13 → 1.6.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/dist/index.d.mts CHANGED
@@ -76,10 +76,10 @@ interface MdreamOptions {
76
76
  */
77
77
  wrapWidth?: number;
78
78
  /**
79
- * Output format. Defaults to `markdown`; use `text` to omit Markdown/HTML
80
- * markup while preserving readable text and block spacing.
79
+ * Output format. Defaults to `markdown`; use `text` for readable plain text,
80
+ * or `html` for allowlisted semantic HTML.
81
81
  */
82
- format?: 'markdown' | 'text';
82
+ format?: 'markdown' | 'text' | 'html';
83
83
  }
84
84
  declare function htmlToMarkdown(html: string, options?: Partial<MdreamOptions>): string;
85
85
  declare function streamHtmlToMarkdown(htmlStream: ReadableStream<Uint8Array | string> | null, options?: Partial<MdreamOptions>): AsyncIterable<string>;
package/dist/worker.d.mts CHANGED
@@ -76,10 +76,10 @@ interface MdreamOptions {
76
76
  */
77
77
  wrapWidth?: number;
78
78
  /**
79
- * Output format. Defaults to `markdown`; use `text` to omit Markdown/HTML
80
- * markup while preserving readable text and block spacing.
79
+ * Output format. Defaults to `markdown`; use `text` for readable plain text,
80
+ * or `html` for allowlisted semantic HTML.
81
81
  */
82
- format?: 'markdown' | 'text';
82
+ format?: 'markdown' | 'text' | 'html';
83
83
  }
84
84
  /**
85
85
  * Initialize the mdream web worker. Must be called before htmlToMarkdown.
package/napi/index.d.mts CHANGED
@@ -63,7 +63,7 @@ export interface HtmlToMarkdownOptions {
63
63
  clean?: CleanOptionsNapi
64
64
  plugins?: PluginOptions
65
65
  wrapWidth?: number
66
- format?: "markdown" | "text"
66
+ format?: "markdown" | "text" | "html"
67
67
  }
68
68
 
69
69
  export interface MarkdownChunkNapi {
package/napi/index.d.ts CHANGED
@@ -63,7 +63,7 @@ export interface HtmlToMarkdownOptions {
63
63
  clean?: CleanOptionsNapi
64
64
  plugins?: PluginOptions
65
65
  wrapWidth?: number
66
- format?: "markdown" | "text"
66
+ format?: "markdown" | "text" | "html"
67
67
  }
68
68
 
69
69
  export interface MarkdownChunkNapi {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mdream",
3
3
  "type": "module",
4
- "version": "1.5.13",
4
+ "version": "1.6.0",
5
5
  "description": "Ultra-performant HTML to Markdown Convertor Optimized for LLMs and llm.txt artifacts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -57,22 +57,22 @@
57
57
  "browser": "./dist/browser.mjs",
58
58
  "dependencies": {},
59
59
  "optionalDependencies": {
60
- "@mdream/rust-android-arm64": "1.5.13",
61
- "@mdream/rust-freebsd-x64": "1.5.13",
62
- "@mdream/rust-linux-arm-gnueabihf": "1.5.13",
63
- "@mdream/rust-linux-arm64-gnu": "1.5.13",
64
- "@mdream/rust-darwin-x64": "1.5.13",
65
- "@mdream/rust-linux-arm64-musl": "1.5.13",
66
- "@mdream/rust-linux-x64-gnu": "1.5.13",
67
- "@mdream/rust-android-arm-eabi": "1.5.13",
68
- "@mdream/rust-darwin-arm64": "1.5.13",
69
- "@mdream/rust-linux-x64-musl": "1.5.13",
70
- "@mdream/rust-wasm32-wasi": "1.5.13",
71
- "@mdream/rust-win32-arm64-msvc": "1.5.13",
72
- "@mdream/rust-win32-x64-msvc": "1.5.13"
60
+ "@mdream/rust-android-arm-eabi": "1.6.0",
61
+ "@mdream/rust-android-arm64": "1.6.0",
62
+ "@mdream/rust-freebsd-x64": "1.6.0",
63
+ "@mdream/rust-darwin-arm64": "1.6.0",
64
+ "@mdream/rust-darwin-x64": "1.6.0",
65
+ "@mdream/rust-linux-arm-gnueabihf": "1.6.0",
66
+ "@mdream/rust-linux-arm64-gnu": "1.6.0",
67
+ "@mdream/rust-linux-x64-gnu": "1.6.0",
68
+ "@mdream/rust-linux-arm64-musl": "1.6.0",
69
+ "@mdream/rust-linux-x64-musl": "1.6.0",
70
+ "@mdream/rust-wasm32-wasi": "1.6.0",
71
+ "@mdream/rust-win32-arm64-msvc": "1.6.0",
72
+ "@mdream/rust-win32-x64-msvc": "1.6.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@mdream/js": "1.5.13"
75
+ "@mdream/js": "1.6.0"
76
76
  },
77
77
  "scripts": {
78
78
  "flame": "pnpm build && unbuild bench/bundle && clinic flame -- node bench/bundle/dist/string.mjs 10",
Binary file
package/wasm/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mdream-edge",
3
3
  "type": "module",
4
4
  "description": "WebAssembly edge runtime bindings for mdream HTML-to-Markdown converter",
5
- "version": "1.5.13",
5
+ "version": "1.6.0",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "mdream_edge_bg.wasm",
Binary file
@@ -2,7 +2,7 @@
2
2
  "name": "mdream-edge",
3
3
  "type": "module",
4
4
  "description": "WebAssembly edge runtime bindings for mdream HTML-to-Markdown converter",
5
- "version": "1.5.13",
5
+ "version": "1.6.0",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "mdream_edge_bg.wasm",