🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import type { Root } from 'chat';
import { BaseFormatConverter, parseMarkdown, stringifyMarkdown } from 'chat';
export class WechatFormatConverter extends BaseFormatConverter {
/**
* Convert mdast AST to WeChat-compatible text.
* WeChat does not support Markdown; convert to plain text.
*/
fromAst(ast: Root): string {
return stringifyMarkdown(ast);
}
/**
* Convert WeChat message text to mdast AST.
*/
toAst(text: string): Root {
return parseMarkdown(text.trim());
}
}