+15
-15
| { | ||
| "name": "mdream", | ||
| "type": "module", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "description": "Ultra-performant HTML to Markdown Convertor Optimized for LLMs and llm.txt artifacts.", | ||
@@ -55,18 +55,18 @@ "author": { | ||
| "optionalDependencies": { | ||
| "@mdream/rust-darwin-arm64": "1.1.1", | ||
| "@mdream/rust-android-arm64": "1.1.1", | ||
| "@mdream/rust-darwin-x64": "1.1.1", | ||
| "@mdream/rust-freebsd-x64": "1.1.1", | ||
| "@mdream/rust-android-arm-eabi": "1.1.1", | ||
| "@mdream/rust-linux-arm64-gnu": "1.1.1", | ||
| "@mdream/rust-linux-arm-gnueabihf": "1.1.1", | ||
| "@mdream/rust-linux-arm64-musl": "1.1.1", | ||
| "@mdream/rust-linux-x64-gnu": "1.1.1", | ||
| "@mdream/rust-linux-x64-musl": "1.1.1", | ||
| "@mdream/rust-wasm32-wasi": "1.1.1", | ||
| "@mdream/rust-win32-x64-msvc": "1.1.1", | ||
| "@mdream/rust-win32-arm64-msvc": "1.1.1" | ||
| "@mdream/rust-android-arm-eabi": "1.1.2", | ||
| "@mdream/rust-darwin-arm64": "1.1.2", | ||
| "@mdream/rust-darwin-x64": "1.1.2", | ||
| "@mdream/rust-freebsd-x64": "1.1.2", | ||
| "@mdream/rust-android-arm64": "1.1.2", | ||
| "@mdream/rust-linux-arm64-gnu": "1.1.2", | ||
| "@mdream/rust-linux-arm-gnueabihf": "1.1.2", | ||
| "@mdream/rust-linux-arm64-musl": "1.1.2", | ||
| "@mdream/rust-linux-x64-musl": "1.1.2", | ||
| "@mdream/rust-linux-x64-gnu": "1.1.2", | ||
| "@mdream/rust-wasm32-wasi": "1.1.2", | ||
| "@mdream/rust-win32-arm64-msvc": "1.1.2", | ||
| "@mdream/rust-win32-x64-msvc": "1.1.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@mdream/js": "1.1.1" | ||
| "@mdream/js": "1.1.2" | ||
| }, | ||
@@ -73,0 +73,0 @@ "scripts": { |
+21
-0
@@ -305,2 +305,9 @@ # mdream | ||
| > **Unknown tags pass through as plain text.** Tag matching is strict: only the standard HTML tags ship with built-in Markdown semantics. Custom elements (`<my-widget>`), web components, and any non-standard tag emit their text content verbatim, with the surrounding tag dropped. To render a custom tag with Markdown semantics, alias it with `tagOverrides`: | ||
| > | ||
| > ```ts | ||
| > htmlToMarkdown('<my-em>hi</my-em>', { tagOverrides: { 'my-em': 'em' } }) | ||
| > // → "_hi_" | ||
| > ``` | ||
| ```ts | ||
@@ -342,2 +349,16 @@ interface TagOverride { | ||
| **Output is GitHub Flavored Markdown.** Mdream emits a fixed GFM dialect tuned for LLM input: ATX headings (`#`), fenced code blocks (` ``` `), `-` bullets, `_` emphasis, `**` strong, `---` horizontal rules, inline links. These are not configurable. For simple delimiter swaps you can use `tagOverrides`: | ||
| ```ts | ||
| htmlToMarkdown(html, { | ||
| tagOverrides: { | ||
| em: { enter: '*', exit: '*', isInline: true }, // _x_ → *x* | ||
| strong: { enter: '__', exit: '__', isInline: true }, // **x** → __x__ | ||
| hr: { enter: '* * *', exit: '' }, // --- → * * * | ||
| }, | ||
| }) | ||
| ``` | ||
| Structural style differences (setext headings, indented code blocks, reference-style links, `~~~` fences, dynamic list markers) are out of scope. If you need turndown-style configurability, use [turndown](https://github.com/mixmark-io/turndown). If you have a use case for these in mdream, please open an issue. | ||
| ### FilterOptions | ||
@@ -344,0 +365,0 @@ |
@@ -5,3 +5,3 @@ { | ||
| "description": "WebAssembly edge runtime bindings for mdream HTML-to-Markdown converter", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "license": "MIT", | ||
@@ -8,0 +8,0 @@ "files": [ |
@@ -5,3 +5,3 @@ { | ||
| "description": "WebAssembly edge runtime bindings for mdream HTML-to-Markdown converter", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "license": "MIT", | ||
@@ -8,0 +8,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
763749
2.27%3057
0.79%1017
2.11%