Skip to main content
Glama

actors-mcp-server

Official
by apify
MIT License
7,198
465
  • Apple
html-to-md.ts901 B
import TurndownService from 'turndown'; const turndown = new TurndownService(); // Remove non-visible elements turndown.remove('script'); turndown.remove('style'); turndown.remove('noscript'); // Remove multimedia elements turndown.remove('svg'); turndown.remove('img'); turndown.remove('figure'); turndown.remove('video'); turndown.remove('audio'); turndown.remove('picture'); // Remove interactive elements turndown.remove('canvas'); turndown.remove('button'); turndown.remove('select'); turndown.remove('input'); // Remove embedded turndown.remove('iframe'); turndown.remove('embed'); turndown.remove('object'); // Remove navigation and footer elements turndown.remove('aside'); turndown.remove('nav'); turndown.remove('footer'); /** * Converts HTML content to Markdown format using Turndown. */ 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/apify/actors-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server