Loading...
Loading...
Compare original and translation side by side
md2fsfs2md@md-lark-converter/climd2fsfs2md@md-lark-converter/cliwhich md2fs 2>/dev/null || echo "NOT_INSTALLED"npm install -g @md-lark-converter/cliwhich md2fs 2>/dev/null || echo "NOT_INSTALLED"npm install -g @md-lark-converter/cliundefinedundefined
After `md2fs --copy` succeeds, tell the user: "Content copied to clipboard — paste into your Feishu document with Cmd+V / Ctrl+V."
If clipboard copy fails (common on headless/remote environments), `md2fs` falls back to printing HTML to stdout. In that case, suggest saving to a JSON file with `-o` instead.
`md2fs --copy`执行成功后,请告知用户:“内容已复制到剪贴板——使用Cmd+V / Ctrl+V粘贴到你的飞书文档中即可。”
如果剪贴板复制失败(在无头/远程环境中常见),`md2fs`会自动回退到将HTML输出到标准输出。这种情况下,建议用户使用`-o`参数将内容保存为JSON文件。undefinedundefinedundefinedundefinedhttps://xxx.feishu.cn/docx/TOKENhttps://xxx.feishu.cn/wiki/TOKENhttps://xxx.feishu.cn/docx/TOKENhttps://xxx.feishu.cn/wiki/TOKENimages/./images/filename.png--no-imagesimages/./images/filename.png--no-imagesfs2md--cookieFEISHU_COOKIE~/.md-lark-converter.jsonfs2md--cookieFEISHU_COOKIE~/.md-lark-converter.jsoncat ~/.md-lark-converter.json 2>/dev/nullcat ~/.md-lark-converter.json 2>/dev/null"I need a Feishu session cookie to fetch documents. Would you like me to automatically open a browser and extract it after you log in? Or would you prefer to copy it manually from DevTools?"
“我需要一个飞书会话Cookie来获取文档。你希望我自动打开浏览器并在你登录后提取Cookie?还是更愿意从开发者工具中手动复制?”
.mcp.json~/.claude/mcp.json{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@anthropic/mcp-playwright"]
}
}
}https://www.feishu.cnsession_list_v5_csrf_tokenfeishu.cnlarkname=value; name=value; ...~/.md-lark-converter.json{ "cookie": "<collected-cookie-string>" }headless: false.mcp.json~/.claude/mcp.json{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@anthropic/mcp-playwright"]
}
}
}https://www.feishu.cnsession_list_v5_csrf_tokenfeishu.cnlarkname=value; name=value; ...~/.md-lark-converter.json{ "cookie": "<收集到的Cookie字符串>" }headless: falsehttps://xxx.feishu.cn/docx/...F12Cmd+Option+Ifeishu.cncat > ~/.md-lark-converter.json << 'EOF'
{
"cookie": "YOUR_COOKIE_HERE"
}
EOFhttps://xxx.feishu.cn/docx/...F12Cmd+Option+Ifeishu.cncat > ~/.md-lark-converter.json << 'EOF'
{
"cookie": "YOUR_COOKIE_HERE"
}
EOFfs2mdfs2mdmd2fs <path> --copycat ~/.md-lark-converter.json 2>/dev/nullfs2md <url> -o <output-path>md2fs <path> --copycat ~/.md-lark-converter.json 2>/dev/nullfs2md <url> -o <output-path>