[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"product:knap":3},{"id":4,"name":5,"slug":6,"slogan":7,"description":8,"organization":5,"images":9,"avatar_url":10,"image_url":11,"website_url":12,"access_links":13,"status":18,"build_by":19,"categories":20,"stats":24,"upload_relationship":28,"create_at":29,"update_at":30,"owner_id":25,"upload_user_id":31,"reviewer_id":32,"video_info":33,"prerelease_cover_url":34,"scheduled_publish_at":33,"user_scheduled":35,"emoji_reacts":36,"tag":33,"pass_review":33,"user_star":35},3324,"Knap","knap","适合 AI 高频使用场景的 Markdown 模板语言和数据转换工具","{\"type\": \"doc\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"Knap\", \"type\": \"text\", \"marks\": [{\"type\": \"link\", \"attrs\": {\"rel\": \"noopener noreferrer nofollow\", \"href\": \"https:\u002F\u002Fknap.md\u002F\", \"class\": null, \"target\": \"_blank\"}}]}, {\"text\": \" 是一个开源的 Markdown 模板语言和数据转换工具，主要面向开发者、文档作者及使用 Obsidian 等知识管理工具的用户。它通过变量、过滤器和逻辑语句，将结构化数据渲染为 Markdown 文档，适合自动生成笔记、报告和资料页面。\", \"type\": \"text\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"用户可以在 Markdown 模板中插入数据字段，对内容进行格式化、排序和转换，也能根据条件输出内容或遍历数组生成表格。Knap 提供在线 Playground、命令行工具和应用内 API，不依赖特定编辑器即可集成。\", \"type\": \"text\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"核心功能\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"变量插入：\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}, {\"text\": \"将 JSON 等数据中的字段放入 Markdown 模板，自动生成标题、正文和属性内容。\", \"type\": \"text\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"过滤器处理：\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}, {\"text\": \"对文本、数组和字段进行排序、格式化、引用或表格转换，减少手工整理工作。\", \"type\": \"text\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"条件与循环逻辑：\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}, {\"text\": \"根据数据是否存在决定输出内容，也可遍历数组批量生成列表和表格。\", \"type\": \"text\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"命令行渲染：\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}, {\"text\": \"通过 CLI 读取模板与数据文件，批量输出 Markdown 文档。\", \"type\": \"text\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"应用内集成：\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}, {\"text\": \"通过 npm API 将模板渲染能力嵌入自己的应用或自动化流程。\", \"type\": \"text\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"适合谁\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}]}, {\"type\": \"bulletList\", \"content\": [{\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"需要批量生成 Markdown 文档的开发者。\", \"type\": \"text\"}]}]}, {\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"使用 Obsidian 管理笔记和知识库的用户。\", \"type\": \"text\"}]}]}, {\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"希望把 JSON、表格或数据库内容转换为文档的人。\", \"type\": \"text\"}]}]}, {\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"正在搭建文档自动化和内容发布流程的团队。\", \"type\": \"text\"}]}]}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"使用方式\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}]}, {\"type\": \"orderedList\", \"attrs\": {\"type\": null, \"start\": 1}, \"content\": [{\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"编写包含变量、过滤器或逻辑语句的 Markdown 模板。\", \"type\": \"text\"}]}]}, {\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"准备 JSON 等结构化数据文件。\", \"type\": \"text\"}]}]}, {\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"在 Playground、CLI 或应用 API 中加载模板和数据。\", \"type\": \"text\"}]}]}, {\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"执行渲染并检查生成的 Markdown 内容。\", \"type\": \"text\"}]}]}, {\"type\": \"listItem\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"将结果导入 Obsidian 或其他支持 Markdown 的工具。\", \"type\": \"text\"}]}]}]}, {\"type\": \"paragraph\"}]}","https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10005546_1789489737_05992426-af73-4be6-91db-2a4ec39f7436.png;https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10005546_1789489737_902ba13d-a953-40ea-9af9-63a63b4b6fc5.png;https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10005546_1789489737_3897e930-5d25-4376-abea-2e50f4f3b542.png","https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10005546_1789489707_949ef94a-968b-44a8-afca-8229bed338c2.png","https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10005546_1789489718_2b9908ad-94a3-4938-a223-68eb23bcf891.png","https:\u002F\u002Fknap.md\u002F",{"items":14},[15],{"platform":16,"url":12,"is_primary":17},"WEB",true,"PUBLISHED",[],[21],{"id":22,"name":23},14,"效率工具",{"upvotes":25,"stars":26,"review_count":25,"reply_count":25,"update_at":27},0,3,"2026-11-12T15:41:00.835Z","THIRD_PARTY","2026-09-15T16:29:35.463Z","2026-09-15T16:43:21.858Z",10005546,10004627,null,"",false,{"reacts":37},[38],{"emoji_code":39,"count":40,"reacted":35},"🤩",1]