Skip to main content
Glama

mcp-google-sheets

html-to-markdown.ts745 B
import { Property, createAction } from '@activepieces/pieces-framework'; import TurndownService from 'turndown'; export const htmlToMarkdown = createAction({ name: 'html_to_markdown', displayName: 'HTML to Markdown', description: 'Convert HTML to Markdown', errorHandlingOptions: { continueOnFailure: { hide: true, }, retryOnFailure: { hide: true, }, }, props: { html: Property.LongText({ displayName: 'HTML Content', description: 'The HTML to convert to markdown', required: true, }), }, run: async (context) => { const html = context.propsValue.html; const service = new TurndownService(); service.remove('script'); return service.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/activepieces/activepieces'

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