import TurndownService from 'turndown';
/**
* TurndownService instance for HTML to Markdown conversion
*/
export const turndown = new TurndownService();
/**
* Converts HTML to Markdown
* @param html - The HTML content to convert
* @returns The converted Markdown
*/
export function htmlToMarkdown(html: string): string {
return turndown.turndown(html);
}
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bsmi021/mcp-server-webscan'
If you have feedback or need assistance with the MCP directory API, please join our Discord server