@aiquants/html-to-markdown 0.5.0 → 0.5.1
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/{core-Dq4LfiYy.cjs → core--XIBQvpW.cjs} +1 -1
- package/dist/{core-DJV8t_Qj.js → core-DhxxOcPm.js} +334 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{mcp-server-DD8CqdNw.js → mcp-server-DOe8W9IZ.js} +2 -2
- package/dist/{mcp-server-CMBUHOmc.cjs → mcp-server-Dn3EHzcf.cjs} +1 -1
- package/dist/{mcp-server-streamable-IQlimU2H.cjs → mcp-server-streamable-DUB_ixZe.cjs} +1 -1
- package/dist/{mcp-server-streamable-DODolSbj.js → mcp-server-streamable-pcpU_lDl.js} +2 -2
- package/dist/mcp-streamable.cjs +1 -1
- package/dist/mcp-streamable.js +1 -1
- package/dist/mcp.cjs +1 -1
- package/dist/mcp.js +1 -1
- package/dist/src/plugins/index.d.ts +1 -0
- package/dist/src/plugins/rehype-decode-entities.d.ts +14 -0
- package/dist/tests/entity-decoding.test.d.ts +5 -0
- package/dist/{version-CTdrYd1G.js → version-BNwQMbri.js} +1 -1
- package/dist/{version-BkgGdAYt.cjs → version-BsWiDlbg.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as JSONRPCMessageSchema, i as isInitializeRequest, e as isJSONRPCRequest, D as DEFAULT_NEGOTIATED_PROTOCOL_VERSION, f as SUPPORTED_PROTOCOL_VERSIONS, h as isJSONRPCResponse, j as isJSONRPCError, g as getPackageVersion, S as Server, I as InitializeRequestSchema, L as ListToolsRequestSchema, C as CallToolRequestSchema, p as parseHtmlToMarkdownArgs, b as parseSaveContentArgs, s as saveContentToFile, d as parseUrlToMarkdownFileArgs } from "./version-
|
|
2
|
-
import { a as getAugmentedNamespace, c as commonjsGlobal, b as getDefaultExportFromCjs, h as htmlToMarkdown } from "./core-
|
|
1
|
+
import { J as JSONRPCMessageSchema, i as isInitializeRequest, e as isJSONRPCRequest, D as DEFAULT_NEGOTIATED_PROTOCOL_VERSION, f as SUPPORTED_PROTOCOL_VERSIONS, h as isJSONRPCResponse, j as isJSONRPCError, g as getPackageVersion, S as Server, I as InitializeRequestSchema, L as ListToolsRequestSchema, C as CallToolRequestSchema, p as parseHtmlToMarkdownArgs, b as parseSaveContentArgs, s as saveContentToFile, d as parseUrlToMarkdownFileArgs } from "./version-BNwQMbri.js";
|
|
2
|
+
import { a as getAugmentedNamespace, c as commonjsGlobal, b as getDefaultExportFromCjs, h as htmlToMarkdown } from "./core-DhxxOcPm.js";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import cors from "cors";
|
|
5
5
|
import express from "express";
|
package/dist/mcp-streamable.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";require("./mcp-server-streamable-
|
|
2
|
+
"use strict";require("./mcp-server-streamable-DUB_ixZe.cjs").runStreamableMcpServer().catch(e=>{process.exit(1)});
|
package/dist/mcp-streamable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { r as runStreamableMcpServer } from "./mcp-server-streamable-
|
|
2
|
+
import { r as runStreamableMcpServer } from "./mcp-server-streamable-pcpU_lDl.js";
|
|
3
3
|
runStreamableMcpServer().catch((error) => {
|
|
4
4
|
console.error("Failed to start streamable MCP server:", error);
|
|
5
5
|
process.exit(1);
|
package/dist/mcp.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const e=new(require("happy-dom").Window);Object.assign(global,{document:e.document,window:e,self:e});require("./mcp-server-
|
|
2
|
+
const e=new(require("happy-dom").Window);Object.assign(global,{document:e.document,window:e,self:e});require("./mcp-server-Dn3EHzcf.cjs").runMcpServer().catch(e=>{process.exit(1)});
|
package/dist/mcp.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.assign(global, {
|
|
|
6
6
|
window,
|
|
7
7
|
self: window
|
|
8
8
|
});
|
|
9
|
-
import { r as runMcpServer } from "./mcp-server-
|
|
9
|
+
import { r as runMcpServer } from "./mcp-server-DOe8W9IZ.js";
|
|
10
10
|
runMcpServer().catch((error) => {
|
|
11
11
|
console.error("Failed to start MCP server:", error);
|
|
12
12
|
process.exit(1);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Rehype プラグインのインデックス
|
|
4
4
|
*/
|
|
5
5
|
export { rehypeAbsoluteLinks } from './rehype-absolute-links.ts';
|
|
6
|
+
export { rehypeDecodeEntities, preprocessHtmlEntities } from './rehype-decode-entities.ts';
|
|
6
7
|
export { rehypeNamedAnchors } from './rehype-named-anchors.ts';
|
|
7
8
|
export { rehypeParagraphWrapper } from './rehype-paragraph-wrapper.ts';
|
|
8
9
|
export { rehypeSanitizeHtml } from './rehype-sanitize-html.ts';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Root } from 'hast';
|
|
2
|
+
/**
|
|
3
|
+
* Decode HTML entities in text nodes and element properties.
|
|
4
|
+
* テキストノードと要素プロパティ内の HTML エンティティをデコードします。
|
|
5
|
+
*/
|
|
6
|
+
export declare const rehypeDecodeEntities: () => (tree: Root) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Pre-process HTML string to decode entities before parsing.
|
|
9
|
+
* パース前にHTML文字列内のエンティティを事前デコードします。
|
|
10
|
+
*
|
|
11
|
+
* @param html - HTML string that may contain entities / エンティティを含む可能性のあるHTML文字列
|
|
12
|
+
* @returns Decoded HTML string / デコードされたHTML文字列
|
|
13
|
+
*/
|
|
14
|
+
export declare const preprocessHtmlEntities: (html: string) => string;
|
|
@@ -5,7 +5,7 @@ Object.assign(global, {
|
|
|
5
5
|
window,
|
|
6
6
|
self: window
|
|
7
7
|
});
|
|
8
|
-
import { b as getDefaultExportFromCjs } from "./core-
|
|
8
|
+
import { b as getDefaultExportFromCjs } from "./core-DhxxOcPm.js";
|
|
9
9
|
import { promises } from "fs";
|
|
10
10
|
import { resolve, dirname } from "path";
|
|
11
11
|
import { readFileSync } from "node:fs";
|