mdream 0.10.0 → 0.10.3
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/_chunks/{plugin-D45YAMmt.d.mts → plugin-B8PiU4Eb.d.mts} +1 -1
- package/dist/_chunks/{src-ChFJhyZI.mjs → src-DYO16Ybo.mjs} +2 -0
- package/dist/_chunks/{types-D9VKEbix.d.mts → types-E56bjFoA.d.mts} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/plugins.d.mts +2 -2
- package/dist/preset/minimal.d.mts +1 -1
- package/package.json +7 -2
|
@@ -1096,6 +1096,7 @@ function parseAttributes(attrStr) {
|
|
|
1096
1096
|
if (!isSpace) {
|
|
1097
1097
|
state = NAME;
|
|
1098
1098
|
nameStart = i;
|
|
1099
|
+
nameEnd = 0;
|
|
1099
1100
|
}
|
|
1100
1101
|
break;
|
|
1101
1102
|
case NAME:
|
|
@@ -1111,6 +1112,7 @@ function parseAttributes(attrStr) {
|
|
|
1111
1112
|
result[name] = "";
|
|
1112
1113
|
state = NAME;
|
|
1113
1114
|
nameStart = i;
|
|
1115
|
+
nameEnd = 0;
|
|
1114
1116
|
}
|
|
1115
1117
|
break;
|
|
1116
1118
|
case BEFORE_VALUE:
|
|
@@ -252,4 +252,4 @@ interface PluginContext {
|
|
|
252
252
|
[key: string]: unknown;
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
|
-
export { BufferRegion, ELEMENT_NODE as ELEMENT_NODE$1, ElementNode, ExtractedElement, HTMLToMarkdownOptions, HandlerContext, MdreamProcessingState, MdreamRuntimeState, Node, NodeEvent, Plugin, PluginContext, PluginCreationOptions, ReadabilityContext, TEXT_NODE as TEXT_NODE$1, TagHandler, TailwindContext, TextNode, extractionPlugin as extractionPlugin$1 };
|
|
255
|
+
export { BufferRegion, ELEMENT_NODE as ELEMENT_NODE$1, ElementNode, type ExtractedElement, HTMLToMarkdownOptions, HandlerContext, MdreamProcessingState, MdreamRuntimeState, Node, NodeEvent, Plugin, PluginContext, PluginCreationOptions, ReadabilityContext, TEXT_NODE as TEXT_NODE$1, TagHandler, TailwindContext, TextNode, extractionPlugin as extractionPlugin$1 };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./_chunks/extraction-D28Kr1J3.mjs";
|
|
2
|
-
import { generateLlmsTxtArtifacts, streamHtmlToMarkdown } from "./_chunks/src-
|
|
2
|
+
import { generateLlmsTxtArtifacts, streamHtmlToMarkdown } from "./_chunks/src-DYO16Ybo.mjs";
|
|
3
3
|
import "./_chunks/plugins-DXY-fo9h.mjs";
|
|
4
4
|
import { withMinimalPreset } from "./_chunks/minimal-CCnrG7a1.mjs";
|
|
5
5
|
import { mkdir, writeFile } from "node:fs/promises";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BufferRegion, ELEMENT_NODE$1 as ELEMENT_NODE, ElementNode, ExtractedElement, HTMLToMarkdownOptions, HandlerContext, MdreamProcessingState, MdreamRuntimeState, Node, NodeEvent, Plugin, PluginContext, PluginCreationOptions, ReadabilityContext, TEXT_NODE$1 as TEXT_NODE, TagHandler, TailwindContext, TextNode } from "./_chunks/types-
|
|
2
|
-
import { createPlugin$1 as createPlugin } from "./_chunks/plugin-
|
|
1
|
+
import { BufferRegion, ELEMENT_NODE$1 as ELEMENT_NODE, ElementNode, ExtractedElement, HTMLToMarkdownOptions, HandlerContext, MdreamProcessingState, MdreamRuntimeState, Node, NodeEvent, Plugin, PluginContext, PluginCreationOptions, ReadabilityContext, TEXT_NODE$1 as TEXT_NODE, TagHandler, TailwindContext, TextNode } from "./_chunks/types-E56bjFoA.mjs";
|
|
2
|
+
import { createPlugin$1 as createPlugin } from "./_chunks/plugin-B8PiU4Eb.mjs";
|
|
3
3
|
import { ReadableStream } from "node:stream/web";
|
|
4
4
|
|
|
5
5
|
//#region src/const.d.ts
|
|
@@ -218,4 +218,4 @@ declare function streamHtmlToMarkdown(htmlStream: ReadableStream | null, options
|
|
|
218
218
|
//#region src/index.d.ts
|
|
219
219
|
declare function htmlToMarkdown(html: string, options?: HTMLToMarkdownOptions): string;
|
|
220
220
|
//#endregion
|
|
221
|
-
export { BufferRegion, ELEMENT_NODE, ElementNode, ExtractedElement, HTMLToMarkdownOptions, HandlerContext, LlmsTxtArtifactsOptions, LlmsTxtArtifactsResult, MarkdownProcessor, MdreamProcessingState, MdreamRuntimeState, Node, NodeEvent, Plugin, PluginContext, PluginCreationOptions, ProcessedFile, ReadabilityContext, TEXT_NODE, TagHandler, TagIdMap, TailwindContext, TextNode, createPlugin, generateLlmsTxtArtifacts, htmlToMarkdown, parseHtml, streamHtmlToMarkdown };
|
|
221
|
+
export { BufferRegion, ELEMENT_NODE, ElementNode, ExtractedElement, HTMLToMarkdownOptions, HandlerContext, type LlmsTxtArtifactsOptions, type LlmsTxtArtifactsResult, MarkdownProcessor, MdreamProcessingState, MdreamRuntimeState, Node, NodeEvent, Plugin, PluginContext, PluginCreationOptions, type ProcessedFile, ReadabilityContext, TEXT_NODE, TagHandler, TagIdMap, TailwindContext, TextNode, createPlugin, generateLlmsTxtArtifacts, htmlToMarkdown, parseHtml, streamHtmlToMarkdown };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TagIdMap, createPlugin } from "./_chunks/extraction-D28Kr1J3.mjs";
|
|
2
|
-
import { MarkdownProcessor, generateLlmsTxtArtifacts, htmlToMarkdown, parseHtml, streamHtmlToMarkdown } from "./_chunks/src-
|
|
2
|
+
import { MarkdownProcessor, generateLlmsTxtArtifacts, htmlToMarkdown, parseHtml, streamHtmlToMarkdown } from "./_chunks/src-DYO16Ybo.mjs";
|
|
3
3
|
|
|
4
4
|
export { MarkdownProcessor, TagIdMap, createPlugin, generateLlmsTxtArtifacts, htmlToMarkdown, parseHtml, streamHtmlToMarkdown };
|
package/dist/plugins.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plugin, extractionPlugin$1 as extractionPlugin } from "./_chunks/types-
|
|
2
|
-
import { createPlugin$1 as createPlugin } from "./_chunks/plugin-
|
|
1
|
+
import { Plugin, extractionPlugin$1 as extractionPlugin } from "./_chunks/types-E56bjFoA.mjs";
|
|
2
|
+
import { createPlugin$1 as createPlugin } from "./_chunks/plugin-B8PiU4Eb.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/filter.d.ts
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdream",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.3",
|
|
5
5
|
"description": "Ultra-performant HTML to Markdown Convertor Optimized for LLMs and llm.txt artifacts.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"url": "https://harlanzw.com/"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/harlan-zw/mdream",
|
|
15
|
+
"directory": "packages/mdream"
|
|
16
|
+
},
|
|
12
17
|
"exports": {
|
|
13
18
|
".": {
|
|
14
19
|
"types": "./dist/index.d.mts",
|
|
@@ -55,7 +60,7 @@
|
|
|
55
60
|
"dependencies": {
|
|
56
61
|
"cac": "^6.7.14",
|
|
57
62
|
"pathe": "^2.0.3",
|
|
58
|
-
"tinyglobby": "^0.2.
|
|
63
|
+
"tinyglobby": "^0.2.15"
|
|
59
64
|
},
|
|
60
65
|
"scripts": {
|
|
61
66
|
"flame": "pnpm build && unbuild bench/bundle && clinic flame -- node bench/bundle/dist/string.mjs 10",
|