We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/djannot/puppeteer-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
html-helpers.ts•507 B
/**
* Recursively marks parent elements of code blocks to ensure they're preserved
* @param node The DOM node to check and mark
*/
export function markCodeParents(node: Element | null) {
if (!node) return;
// If the node contains a <pre> or <code>, mark it
if (node.querySelector('pre, code')) {
node.classList.add('article-content');
node.setAttribute('data-readable-content-score', '100');
}
// Recursively mark parents
markCodeParents(node.parentElement);
}