为answer-me-with-html打分
给出您宝贵的评分:
手机端可长按图片保存,分享到朋友圈 / 社群
使用 answer-me-with-html,你可以:
AI 智能体能力组件,面对复杂问题直接生成可阅读的单页 HTML,直观展示答案内容。
用户评论 (0)
2026年10月15日
2026年11月19日
2026年10月15日
2026年10月13日
2026年10月23日
v0.6.4
2026年11月24日
steps: walk through a diagram, no code needed
0.6.3 linked a diagram to code. Most explanations have no code: an order lifecycle, a deploy pipeline, a state machine. Now a steps block in a panel with a flow, state or tree diagram and no code block gives each step an explanation (#465):
```flow
Cart -> Pay -> Ship
```
```steps
Cart: The customer fills the cart.
Pay: The payment goes through.
Ship: The warehouse sends the parcel.
```- On the page: the diagram and a numbered list of the explanations sit side by side, in the order you wrote them; on a narrow screen they stack with the diagram on top. Click an item or an explanation, or press Enter or Space on either, and the item, its edges and its explanation light up. Previous, Next and the arrow keys move, and the current explanation scrolls into view. Esc clears.
- Print, PNG, PDF and no script: every step is numbered on its item, beside the numbered list.
- Writing it: each line is
<item>: <explanation>, with no line numbers.am renderreports an item that is not in the diagram, and says so when the step looks like it was written with lines. A panel with code works as in 0.6.3.
Fix
- steps: on a narrow screen, a diagram stacked above its code was pushed to the right by its expand button. It is centred again, like any other diagram (#465).
Full list: #465.
steps:不写代码,也能一步一步讲一张图
0.6.3 把图和代码连了起来。但很多讲解没有代码,比如一笔订单的生命周期、一条部署流水线、一个状态机。现在,面板里有 flow、state 或 tree 图而没有代码块时,steps 块给每一步配一句讲解(#465):
```flow
Cart -> Pay -> Ship
```
```steps
Cart: 顾客把商品放进购物车。
Pay: 支付完成。
Ship: 仓库把包裹寄出。
```- 在页面上:图和带编号的讲解列表按你书写的先后并排;窄屏时上下堆叠,图在上。点击图中的项目或某条讲解(或在两者上按 Enter、空格),项目、它的连线和那条讲解一起高亮。“上一步”“下一步”和方向键切换,当前讲解会滚进视野;Esc 取消。
- 打印、PNG、PDF 和没有脚本时:每一步的编号标在它的图项目上,旁边是带编号的讲解列表。
- 写法:每行写
<项目>: <讲解>,不带行号。am render会报告不在图里的项目;如果这一步看起来是带着行号写的,也会提示。有代码的面板和 0.6.3 一样。
修复
- steps:窄屏上下排时,图会被它的展开按钮挤到右边。现在和其他图一样居中(#465)。
完整列表:#465。
详细ChangeLogv0.6.3
2026年11月24日
steps: link a diagram and a code block
A new steps block links a flow, state or tree diagram to a code block in the same panel. Each line names an item of the diagram, the code lines it stands for and a short note (#440, #461):
```steps
Gateway 1: The request comes in.
Auth 2: Check the user.
Service 3-4: The service runs and returns the result.
```- On the page: click an item, or press Enter or Space on it, and its lines get a box with the note above them; the item and its edges light up. Click a line number to select the step that covers it. A bar above the pair has Previous, Next, the step count and a short hint; the arrow keys move and Esc clears.
- Layout: the diagram and the code sit side by side, in the order you wrote them, when the block is about 720px wide or more. Narrower, they stack with the diagram on top. Long lines wrap.
- Print, PNG, PDF and no script: every step is numbered on its item and beside its first line, and a numbered list of the steps follows the pair.
- Code only: leave the diagram out and the block walks through the code step by step.
am renderreports each mistake with its draft line: an item that is not in the diagram, a range outside the code, overlapping ranges, a missing code block, and more. Seeam help steps.
Fixes
- Copy buttons: Copy source and a code block's Copy no longer claim a copy that did not happen. When the clipboard refuses, the button says "Copy failed" in the page language (#447 by @SU-AN-coder, #457).
- HTML sanitizers: page styles no longer contain text that looks like a tag, so a viewer that sanitizes HTML, such as DeepSeek Harness's document preview, keeps the page's styling (#452, #456).
- tree: long words such as IPs and emails wrap inside their box instead of running into the next column. The toolbar no longer covers the page header, and a copied
Lead:label is dropped (#455). - One-column sheets: a
cols: 1sheet stays in one column between 761px and 1100px wide, instead of using half the width (#459). - Skill: when a page presents content the user already has and did not ask to summarize, the skill keeps every section (#432, #449 by @mojunzi).
Full list: #447, #449, #455, #456, #457, #459, #461.
steps:把图和代码块连起来
新的 steps 块把同一面板里的 flow、state 或 tree 图和一个代码块连起来。每一行写图里的一个项目、它对应的代码行和一句说明(#440、#461):
```steps
Gateway 1: 请求进来。
Auth 2: 检查用户。
Service 3-4: 服务执行,再把结果返回。
```- 在页面上:点击图中的项目(或在项目上按 Enter、空格),对应的代码行会被框出,框上方显示说明,项目和它的连线一起高亮。点击行号会选中覆盖该行的那一步。图和代码上方有一条栏,带“上一步”“下一步”、步数和一句简短提示;方向键切换,Esc 取消选择。
- 排版:块宽约 720px 以上时,图和代码按你书写的先后并排;更窄时上下堆叠,图在上。长行会折行。
- 打印、PNG、PDF 和没有脚本时:每一步的编号标在它的图项目上和它的第一行旁,图和代码下方有一张编号的步骤列表。
- 只有代码:不写图时,这个块就是对代码的逐步讲解。
am render会带稿件行号报告每个错误:项目不在图里、范围超出代码、两个范围重叠、缺少代码块等。完整写法见am help steps。
修复
- 复制按钮:“复制源稿”和代码块的“复制”不再在没复制成功时显示已复制。剪贴板拒绝时,按钮用页面语言显示“复制失败”(@SU-AN-coder 的 #447、#457)。
- HTML 清理器:页面样式里不再出现像标签的文字,所以会清理 HTML 的查看器(例如 DeepSeek Harness 的文档预览)不会丢掉页面样式(#452、#456)。
- tree:IP、邮箱这类长词在自己的框里折行,不再伸进下一栏。工具栏不再挡住页面标题,复制时多出的
Lead:标签也去掉了(#455)。 - 单栏 sheet:
cols: 1的 sheet 在 761px 到 1100px 宽时保持单栏,不再只占一半宽度(#459)。 - skill:页面展示用户已有、且没有要求总结的内容时,skill 会保留每一节(#432、@mojunzi 的 #449)。
完整列表:#447、#449、#455、#456、#457、#459、#461。
详细ChangeLogv0.6.2
2026年11月20日
Export menu: copy as image, download PNG, save as PDF
The toolbar's Copy as image button is now an Export menu (#433, #442):
- Copy as image puts the whole page on the clipboard as a PNG.
- Download PNG saves the same image as a file named from the page title. The code comes from #434 by @Linuxdazhao.
- Save as PDF opens the browser's print dialog with the page's print styles.
Copying also works in Firefox now. When the browser, the clipboard or a policy rules copying out, the menu item is disabled and says why, instead of the button disappearing. Safari and other browsers can try it, with a note that the result is not guaranteed (#424, #425, #438). A long page stays within the browser's canvas limit, and a table or diagram that scrolls on the page no longer shows stray scrollbars in the image (#435, #436).
am render checks path:line references
An inline code span that is only a path and a line, such as `src/cli.js:42` or `src/cli.js:18-30`, cites that file. am render checks it against the current folder and prints a refs warning with the draft line (L12 [ref] ...) when the file is missing, the lines go past its end, or the range runs backwards. A missing file counts only when its first folder exists here (src/clii.js:4 when src/ exists), so a path of another project is not checked. A page with these warnings does not open by itself, the same as with code warnings (#426, #429).
The skill also has a method for pages that explain a codebase: find the entry points, draw the modules, trace one request end to end, and cite every claim as path:line (#426, #427).
api: one change across several endpoints
An api block can hold several HTTP and RPC endpoints that one requirement changes together. Mark endpoints, sections or fields with +, - or ~, and the block gets the same Before / Changes / After switch as other change views. A paired - old and + new line keeps both exact definitions (#393).
Fixes
- Private pages:
am render --replacekeeps a private page private when the new page gets a new file name, so a 0600 page in a sharedpages_diris no longer rewritten as 0644 (#443). - Diagram viewer: a diagram stays sharp when you zoom in, instead of showing a stretched bitmap (#430, #441).
- api tables: a narrow column wraps field names and types between words (
Order|Status,refund_|amount), not at any letter (#428). - Tests: two races in the live-reload browser tests are fixed (#444).
- Dependencies: marked 18.2.0 (#437).
Full list: #393, #425, #427, #428, #429, #436, #437, #438, #441, #442, #443, #444.
导出菜单:复制为图片、下载 PNG、保存为 PDF
工具栏上的「复制为图片」按钮改成了导出菜单(#433、#442):
- 复制为图片:把整页作为 PNG 放进剪贴板。
- 下载 PNG:把同一张图片存成文件,文件名取自页面标题。代码来自 @Linuxdazhao 的 #434。
- 保存为 PDF:打开浏览器的打印对话框,使用页面自带的打印样式。
Firefox 现在也能复制。浏览器、剪贴板或权限策略不允许复制时,菜单项会变灰并说明原因,按钮不再直接消失。Safari 等其他浏览器可以尝试,同时提示效果不保证(#424、#425、#438)。很长的页面不会超出浏览器的画布上限;页面上可横向滚动的表格或图表,在图片里不再出现多余的滚动条(#435、#436)。
am render 核对 路径:行号 引用
正文里只写路径和行号的行内代码,如 `src/cli.js:42` 或 `src/cli.js:18-30`,表示引用该文件。am render 会在当前目录里核对:文件不存在、行号超出文件末尾、或范围前大后小时,打印带稿件行号的 refs 警告(L12 [ref] ...)。文件不存在时,只有它的第一级目录在当前目录里存在才算警告(例如 src/ 存在而写了 src/clii.js:4),所以其他项目的路径不检查。有这类警告的页面和有代码警告的一样,不会自动打开(#426、#429)。
skill 里还新增了讲解代码库的方法:先找入口,画出模块,从头到尾追一条请求,每个结论都用 路径:行号 标出出处(#426、#427)。
api:一次改动涉及多个接口
一个 api 块可以放同一需求一起改动的多个 HTTP 和 RPC 接口。在接口、分区或字段前加 +、- 或 ~,块上就会出现和其他改动视图一样的「改前 / 变更 / 改后」切换。成对的 - 旧定义和 + 新定义会各自原样保留(#393)。
修复
- 私有页面:
am render --replace生成的新页面换了文件名时,私有页面仍保持私有,共用pages_dir里权限 0600 的页面不会再变成 0644(#443)。 - 图示查看器:放大图表时保持清晰,不再显示拉伸的位图(#430、#441)。
- api 表格:列太窄时,字段名和类型在词与词之间换行(
Order|Status、refund_|amount),不会在任意字母处断开(#428)。 - 测试:修复 live 自动刷新浏览器测试里的两处竞态(#444)。
- 依赖:marked 18.2.0(#437)。
完整列表:#393、#425、#427、#428、#429、#436、#437、#438、#441、#442、#443、#444。
详细ChangeLogv0.6.1
2026年11月16日
New diagrams: state machines, UML classes and API contracts
statedraws a state machine: oneFrom -> To: eventper line,[*]for the initial and final states, and a loop forOpen -> Open: retransmit. A TCP handshake or an order lifecycle reads as states and events instead of a generic flowchart (#388, #390).classdraws UML class diagrams: attributes and methods, interfaces, abstract classes and enums, with inheritance, realization, composition, aggregation, association and dependency (#386, #387).apishows one HTTP or RPC endpoint per block: path, query and header parameters, request and response types and statuses, and a Requirement column when fields sayrequiredoroptional. It shows the contract; it sends no request (#386, #387).am help state,am help classandam help apigive the syntax.
A preview under each ask option
An ask option can carry a preview: indent a ::: block under it, with any component, html or svg. ask cards lays the options out as a grid of cards, each preview its canvas, for a choice between looks (#392, #389).
Copy as image, and pages_dir
- Copy as image: a toolbar button draws the whole page into a PNG and puts it on the clipboard. It appears in Chromium on a local file,
localhostor HTTPS; Firefox and Safari cannot draw the page reliably, so it stays hidden there. If the clipboard refuses the image, the page downloads the PNG. A screen reader hears the result (#399, #400). pages_dir:am config set pages_dir ~/answerswrites pages into that folder; a relative path is inside the data directory.am render,--replace,am theme checkandam servefollow it.am cleandeletes only the page files it generated there, and a page replaced there keeps its file mode, so a private page in a shared folder stays private (#399, #400).
Video narration from a command-line TTS: --voice cmd
am video draft.md --voice cmd runs the command in AM_TTS_CMD once per narration line, with no speech server, so it works in a sandbox that cannot listen on a port. It works with edge-tts, piper, a Kokoro CLI, or say outside a sandbox (#356, #401, #419):
AM_TTS_CMD='edge-tts --voice zh-CN-XiaoxiaoNeural --file {text_file} --write-media {out}' \
am video draft.md --voice cmd --mp4{out}is the audio file the command writes;{text_file},{text}and{lang}give it the line and its language, and the line also goes to stdin. The command runs without a shell, so narration text is never read as shell syntax.- Clips get the same silence trimming and speech cache as the other voices. A missing program, a failed run or a silent clip stops the render and says why.
Turkish
Pages and the video player speak Turkish: write lang: tr in the draft (#412).
Layout fixes
- Tables: a long id or path no longer holds its column at full width and leaves the prose columns one word per line. A table short of room breaks such a word inside its cell, also in inline code and in a chart's data table (#413, #418).
- Diagrams: a diagram is never drawn under 0.75 of its natural width, where its text gets too small; it scrolls sideways instead. A box that hides content past an edge fades that edge, so it does not look cut off. Printed, a diagram shrinks to the page again (#414).
- Windows scrollbars: with classic scrollbars, some sheets fell back to the plain grid on wide screens; they now lay out as on macOS (#416).
- flow: no crossing is left that two moves at once would remove (#408). A change marker written before a node inside the line (
A -> + B) is an error with the line rewritten, instead of a second box (#420). - sequence, tree, kv, timeline: step numbers from 10 on keep clear of their label; a forest of top-level items draws no stray connectors; a kv grid has no empty corners; long words wrap inside timeline steps and inline code, and a two-line date keeps every dot on one line (#409, #410).
- Dark mode: pages tell the browser their colour scheme, so scrollbars and menus match. Links inside components (kv, timeline, tree, ask) take the theme's link colour instead of the browser's blue (#395, #398, #405, #415).
- Claude desktop app: a page opened there, whose host root already has its own
data-theme, now gets its theme instead of no styles at all (#407, #411).
Other changes
- Colophon:
am config set colophon offleaves out the "Generated by" line above the title on pages made or patched afterwards (#385, #391). - Docs: a Japanese README (#394).
- Dependencies: marked 18.1.3 (#406).
- Version: this release is 0.6.1, not 0.6.0. A 0.6.0 was on
mainfor seven minutes on 2026-10-14 before it became 0.5.3, and an install from that window updates only to a higher version.
Full list: #387, #389, #390, #391, #394, #398, #400, #406, #408, #409, #410, #411, #412, #413, #414, #415, #416, #418, #419, #420.
新图表:状态机、UML 类图和接口定义
state画状态机:每行一条From -> To: event,[*]表示初始和终止状态,Open -> Open: retransmit画成自环。TCP 握手、订单生命周期这类内容读起来是状态和事件,而不是普通流程图(#388、#390)。class画 UML 类图:属性和方法、接口、抽象类和枚举,以及继承、实现、组合、聚合、关联和依赖(#386、#387)。api每个块展示一个 HTTP 或 RPC 接口:路径、查询和请求头参数,请求和响应的类型与状态;字段写了required或optional时会显示"必填性"一列。它只展示定义,不发送请求(#386、#387)。- 语法见
am help state、am help class和am help api。
提问选项下的预览
ask 的选项可以带一个预览:在选项下缩进写一个 ::: 块,里面可以是任何组件,也可以是 html 或 svg。ask cards 把选项排成卡片网格,每个预览就是卡片的画布,适合在几种样式之间做选择(#392、#389)。
复制为图片,以及 pages_dir
- 复制为图片: 工具栏上的按钮把整页画成 PNG 并放进剪贴板。它在 Chromium 打开本地文件、
localhost或 HTTPS 页面时出现;Firefox 和 Safari 无法可靠地把页面画成图片,因此在那里保持隐藏。剪贴板拒绝图片时,页面会改为下载 PNG。读屏软件会读出结果(#399、#400)。 pages_dir:am config set pages_dir ~/answers把页面写到这个目录;相对路径按数据目录解析。am render、--replace、am theme check和am serve都跟随它。am clean在这里只删除它生成的页面文件;在这里替换页面时会保留原文件的权限,共享目录里的私有页面仍然是私有的(#399、#400)。
用命令行 TTS 做视频配音:--voice cmd
am video draft.md --voice cmd 对每行旁白运行一次 AM_TTS_CMD 里的命令,不需要语音服务,所以在不能监听端口的沙箱里也能用。edge-tts、piper、Kokoro 命令行工具,或沙箱外的 say 都可以(#356、#401、#419):
AM_TTS_CMD='edge-tts --voice zh-CN-XiaoxiaoNeural --file {text_file} --write-media {out}' \
am video draft.md --voice cmd --mp4{out}是命令写出的音频文件;{text_file}、{text}和{lang}把这行旁白和它的语言交给命令,旁白也会写进标准输入。命令不经过 shell 运行,旁白文字不会被当成 shell 语法。- 音频和其他配音来源一样会裁掉首尾静音、使用语音缓存。找不到程序、运行失败或生成的音频是静音时,渲染会停下并说明原因。
土耳其语
页面和视频播放器支持土耳其语:在草稿里写 lang: tr(#412)。
排版修复
- 表格: 很长的 id 或路径不会再把所在列撑满,把文字列挤成一行一个词。表格空间不够时,这类长词会在单元格内折行,行内代码和图表的数据表格也一样(#413、#418)。
- 图表: 图表不会再缩到原尺寸的 0.75 倍以下(再小文字就看不清),而是改为横向滚动。内容超出边缘的区域会在那一侧渐隐,看起来不像被截断。打印时图表仍会缩回页宽(#414)。
- Windows 滚动条: 使用经典滚动条时,有些页面在宽屏上会退回普通网格;现在和 macOS 上一样正常排版(#416)。
- flow: 需要同时移动两处才能消除的连线交叉也不会再画出来(#408)。变更标记写在行中间的节点前(
A -> + B)时会报错并给出改好的写法,不再多画一个框(#420)。 - sequence、tree、kv、timeline: 第 10 步以后的编号不再贴住标签;多个顶层节点并排时不再画多余的连接线;kv 网格不再留出空角;时间线和行内代码里的长词会折行,日期折成两行时所有圆点仍在同一行(#409、#410)。
- 深色模式: 页面会告诉浏览器自己的配色,滚动条和下拉菜单随之变深。组件里的链接(kv、时间线、树、提问)使用主题的链接色,不再是浏览器默认的蓝色(#395、#398、#405、#415)。
- Claude 桌面应用: 在宿主根元素已经带有自己
data-theme的环境里打开页面,现在能正常显示主题,而不是完全没有样式(#407、#411)。
其他改动
- 署名行:
am config set colophon off之后生成或 patch 的页面,标题上方不再显示 "Generated by" 那一行(#385、#391)。 - 文档: 新增日文 README(#394)。
- 依赖: marked 18.1.3(#406)。
- 版本号: 这一版是 0.6.1,不是 0.6.0。2026-10-14 曾有一个 0.6.0 在
main上停留了七分钟,随后改回 0.5.3;那段时间装上的版本只会更新到更高的版本号。
完整列表: #387、#389、#390、#391、#394、#398、#400、#406、#408、#409、#410、#411、#412、#413、#414、#415、#416、#418、#419、#420。
详细ChangeLogv0.5.11
2026年11月05日
Send a page to a chat app: am export
Discord, Telegram, Slack and WeChat show an .html file as source. am export turns a rendered page into files they show (#350, #354):
am export page.html --pdf page.pdf # A4, the page's own print rules
am export page.html --png out/ # out/page-1.png, out/page-2.png ...--pngrenders at 1200 CSS px wide and 2x, hides the toolbar, the reply and remark controls and the new-version notice, and cuts the page into slices no taller than 1800 CSS px. A cut falls in a gap between panels.- Exporting into the same folder again removes the
<page-name>-<n>.pngslices it did not write this time, so a shorter page leaves no old slices behind. Other files stay. A slice that is the input page, or that cannot be removed, is left in place and reported (#362, #363). - It needs Chrome, Chromium or Edge (
AM_CHROMEsets the path) and Node.js 22 or later.
Sort and filter a table
Write {table sort} right after a Markdown table, and the reader clicks a header to sort it. {table filter} adds a text filter over every cell; {table sort filter} gives both (#357, #365).
- Columns of numbers,
1,200,$900,12%or ISO dates sort by value, including integers larger than 2^53. Other columns sort as text. - The controls work from the keyboard, are hidden in print and in PDF/PNG export, and do not appear without JavaScript. A table without the attribute stays static.
- A
<script>in anhtmlorsvgblock cannot run under the page's Content-Security-Policy.am rendernow warns about it, with the draft line.
Video narration from your own audio files
am video draft.md --audio-map lines.json takes the narration from audio files you already have, with no speech server: the JSON maps each narration line to a file, {"First the client sends SYN.": "audio/01.mp3"} (#356, #366).
- Relative paths start at the map file's folder. A narration line without a key, or a missing file, stops the render and names it.
- 16-bit PCM WAV works as is; other WAV encodings and other formats need ffmpeg. Clips get the same silence trimming and speech cache as
--voice local, and the cache notices a changed file. --audio-mapcannot be combined with an explicit--voice. A command-line TTS source (#356) is still to come.
Fewer crossings in flow diagrams, and a warning for the rest
flowanderdiagrams no longer draw a crossing that swapping two neighbouring nodes removes. Before, two edges that left one node kept the order of the draft and could cross (#369).- When a
flowedge still runs through another node or another edge's label,am renderwarns with the draft line and a way out: the other direction when it draws the diagram clean (```flow TB), otherwise a split into an overview and a detail diagram. The page is still written (#378). - The check follows the curve the page draws, not the layout points, so it matches what the reader sees (#382, #384).
Other changes
- Claude Code plugin: the plugin no longer ships with a
node_modulesfolder, so it is no longer turned off in a Claude Code desktop SSH session ("has a symbolic link, node_modules/.bin/esbuild"). Runclaude plugin update answer-me-with-html@answer-me-with-html(#361, #368). am serve: a page opened over http keeps its answers, comments and remarks on the server, so a phone that discards a background tab no longer loses them (#322, #343).- Themes: every installed theme appears in the page's theme picker, not only the default one (#348, #353).
- flow: a literal
\nin a node or edge label breaks the line, as agents used to Mermaid write it (#347, #352). - File names: page and draft files are named with ASCII letters and digits only, at most 24 characters, so a ctrl-click in Windows Terminal or a wrapping TUI opens the whole path. A title with no ASCII gives
page-<time>.html, so a draft can name its file withfile: tcp-handshakein the front matter (#344, #351, #379, #383). - Korean: Korean pages break lines between words, not between syllables. A status badge with a long note wraps beside its icon instead of widening the table (#355).
- Skill: commands use
${CLAUDE_SKILL_DIR}again, and other hosts are told to replace it with the skill's directory, which fixesCannot find module '/scripts/am.mjs'in opencode (#326, #327). - Dependencies: dagre 3.1.3 and marked 18.1.2 (#376, #377).
- Docs: INSTALL.md says there is no npm package and that
-a '*'reports agents without global skills as failed, which is expected (#345). The reference says an automatic panel ID can name another panel after a new render, so give panels letters befoream patch --panel B(#346). SKILL.md says the ask count and word limits are advice; the CLI checks only 2 to 6 options (#358, #360).
Full list: #327, #343, #345, #346, #351, #352, #353, #354, #355, #359, #360, #363, #365, #366, #367, #368.
把页面发到聊天工具:am export
Discord、Telegram、Slack 和微信会把 .html 文件显示成源码。am export 把渲染好的页面转成它们能直接显示的文件(#350、#354):
am export page.html --pdf page.pdf # A4,按页面自己的打印样式
am export page.html --png out/ # out/page-1.png、out/page-2.png ……--png按 1200 CSS px 宽、2 倍分辨率渲染,隐藏工具栏、回复和标注控件以及新版本提示,把页面切成每张不超过 1800 CSS px 高的图。切口落在面板之间的空隙里。- 再次导出到同一个目录时,会删掉这次没有重新写入的
<页面名>-<n>.png切片,所以页面变短后不会留下旧图。其他文件不动。如果某个切片就是输入的页面,或者删不掉,就保留原样并给出提示(#362、#363)。 - 需要 Chrome、Chromium 或 Edge(用
AM_CHROME指定路径),以及 Node.js 22 或更高版本。
表格排序和筛选
在 Markdown 表格后面紧接着写 {table sort},读者点表头就能排序。{table filter} 加一个对所有单元格的文字筛选框;{table sort filter} 两个都要(#357、#365)。
- 数字、
1,200、$900、12%或 ISO 日期组成的列按数值排序,超过 2^53 的整数也准确。其他列按文字排序。 - 控件可以用键盘操作,打印和 PDF/PNG 导出时隐藏,没有 JavaScript 时不出现。没写这个属性的表格保持静态。
html或svg块里的<script>在页面的 Content-Security-Policy 下无法运行,am render现在会给出警告,并指出草稿里的行号。
用现成的音频文件做视频旁白
am video draft.md --audio-map lines.json 直接用你已有的音频文件做旁白,不需要语音服务:JSON 里把每行旁白对应到一个文件,例如 {"First the client sends SYN.": "audio/01.mp3"}(#356、#366)。
- 相对路径从映射文件所在的目录算起。某行旁白没有对应的键、或者文件不存在时,渲染会停下并指出是哪一行。
- 16-bit PCM WAV 可以直接用,其他 WAV 编码和其他格式需要 ffmpeg。音频和
--voice local一样会裁掉首尾静音、使用语音缓存,文件改动后缓存会重新读取。 --audio-map不能和显式的--voice同时使用。命令行 TTS(#356)还没做。
flow 图交叉更少,剩下的会给出提示
flow和er图里,交换两个相邻节点就能消除的交叉不会再画出来。以前从同一个节点出发的两条连线按草稿顺序排列,可能互相交叉(#369)。flow的连线仍然穿过别的节点或别的连线标签时,am render会带上草稿行号给出提示和解决办法:换个方向能画干净时建议换方向(```flow TB),否则建议拆成总览图和细节图。页面照常生成(#378)。- 检查按页面实际画出的曲线进行,而不是按布局给出的折点,所以和读者看到的一致(#382、#384)。
其他改动
- Claude Code 插件: 插件里不再带
node_modules目录,所以在 Claude Code 桌面版的 SSH 会话里不会再被关掉("has a symbolic link, node_modules/.bin/esbuild")。执行claude plugin update answer-me-with-html@answer-me-with-html即可(#361、#368)。 am serve: 通过 http 打开的页面,回答、评论和标注保存在服务端,手机回收后台标签页后也不会丢(#322、#343)。- 主题: 页面的主题切换器里会列出所有已安装的主题,不只是默认主题(#348、#353)。
- flow: 节点或连线标签里的
\n会换行,按 Mermaid 习惯写的草稿可以直接用(#347、#352)。 - 文件名: 页面和草稿文件名只用 ASCII 字母和数字,最长 24 个字符,在 Windows Terminal 里 ctrl+点击、或者在会自动折行的 TUI 里点击,都能打开完整路径。没有 ASCII 字符的标题生成
page-<时间>.html,这时可以在草稿 frontmatter 里写file: tcp-handshake指定文件名(#344、#351、#379、#383)。 - 韩文: 韩文页面在词与词之间换行,不再把一个词从音节中间拆开。带长备注的状态标记会在图标旁边换行,不再把表格撑宽(#355)。
- Skill: 命令里重新使用
${CLAUDE_SKILL_DIR},并告诉其他宿主把它换成 skill 所在的目录,修复了 opencode 里的Cannot find module '/scripts/am.mjs'(#326、#327)。 - 依赖: dagre 3.1.3、marked 18.1.2(#376、#377)。
- 文档: INSTALL.md 说明没有 npm 包,并说明用
-a '*'时不支持全局 skill 的 agent 会显示安装失败,这是正常的(#345)。参考文档说明重新渲染后自动编号的面板字母可能指向另一个面板,所以用am patch --panel B之前先给面板写上字母(#346)。SKILL.md 说明提问数量和字数限制只是建议,CLI 只检查每个提问 2 到 6 个选项(#358、#360)。
v0.5.10
2026年10月26日
Write a component as a ::: block
A component written the way VitePress and Docusaurus write an admonition now renders exactly like the fenced block, instead of the error 0.5.9 reported (#341):
:::callout ok Done
It works.
:::is the same as
```callout ok Done
It works.
```- Only a component name counts:
:::note, a bare:::, and:::inside a code block stay text. - The block ends at a line of at least as many colons as its opener, so a block that opens with
::::can hold a:::line. - An opener with no closing line is the same error as an unclosed ``` block.
- The docs still teach the ``` form;
:::is accepted so a draft written from habit renders the first time.
Full list: #341.
组件也可以写成 ::: 块
按 VitePress、Docusaurus 提示框的写法写的组件,现在和 ``` 代码块写法渲染结果完全相同,不再像 0.5.9 那样报错(#341):
:::callout ok Done
It works.
:::等同于
```callout ok Done
It works.
```- 只有组件名才算:
:::note、单独的:::,以及代码块里的:::照旧是文字。 - 块在冒号数不少于开头的那一行结束,所以用
::::开头的块里可以写:::行。 - 有开头没有结尾,和 ``` 没闭合报同一个错。
- 文档仍然教 ``` 写法;接受
:::是为了让按习惯写的草稿一次就能渲染成功。
v0.5.9
2026年10月26日
A component written as a ::: block is an error
A draft that writes a component the way VitePress, Docusaurus or Pandoc write an admonition, :::callout … :::, used to render the lines as plain text with no warning. Now am lint and am render report it with the right syntax, together with any other errors in the draft, and no page is written (#336):
✗ L2 [fence] write a component as a fenced code block, not :::callout
Correct example:
```callout warn Caution
Close the valve before you remove the pump.
```
- Only a known component name counts:
:::note, a bare:::, and:::inside a code block stay text. SKILL.mdnow says above the component table that a component is a fenced code block.
Other changes
- Website: a changelog page with the notes of every release, newest first, in English and Chinese: answer-me-with-html.com/changelog/. The notes now live in the repo as
changelog/<version>.md(#337). - Contributing: a bug fix, docs, a typo, a test or a catalog theme can go straight to a PR. A new feature, new syntax, a new page interaction or a change to intended behaviour still needs an accepted issue first (#338).
把组件写成 ::: 块会报错
草稿如果按 VitePress、Docusaurus 或 Pandoc 提示框的写法写组件,比如 :::callout … :::,以前会被当成普通文字输出,也没有任何提示。现在 am lint 和 am render 会报错并给出正确写法,和草稿里的其他错误一起列出,不生成页面(#336):
✗ L2 [fence] write a component as a fenced code block, not :::callout
Correct example:
```callout warn Caution
Close the valve before you remove the pump.
```
- 只有已知的组件名才报错:
:::note、单独的:::,以及代码块里的:::照旧是文字。 SKILL.md在组件表上方写明:组件要写成代码块。
其他改动
- 网站: 新增更新日志页面,收录每个版本的说明,从新到旧,中英文都有:answer-me-with-html.com/zh/changelog/。发版说明现在保存在仓库的
changelog/<版本>.md里(#337)。 - 参与贡献: 修 bug、改文档、错别字、测试和只加主题的 PR 可以直接提交。新功能、新语法、新的页面交互,以及修 bug 以外的行为改动,仍然要先有被接受的 issue(#338)。
v0.5.8
2026年10月26日
An outline rail on doc pages
A doc page with 3 or more panels no longer gives its table of contents a column of its own, or a block above the body on a phone. The contents become a rail beside the body: one short tick per section (#332).
- Hover a tick to see its title. Dwell on the rail, or click or tap it, to open the full list. The section you are reading is marked as you scroll.
outline: leftoroutline: rightin the frontmatter picks the side; the default isright. On a right-to-left page the sides mirror.- Arrow keys move through the list and Esc closes it. Without JavaScript the list still opens and the links still jump. Print hides the rail.
- On a 390px phone, a 24-section page now starts its body right under the title, instead of at y=889px.
- Doc pages are narrower (916px instead of 1120px) and centred, so the title and the body line up.
Pages on your phone over Tailscale
am serve --tailscale listens only on this machine's Tailscale address, so the link: lines open from a phone or another device on your tailnet, with no SSH and no change to your Tailscale settings. Links survive a restart; to revoke them all, stop the server, delete ~/.answer-me-with-html/serve-secret and start it again (#323).
Other changes
- Remarks: the remark popover works from the keyboard:
1–4pick a tag,Ctrl/⌘+Entersaves, and a popover closed without saving keeps its draft. In remark mode,Tabreaches every block andEnterorSpaceopens its popover (#321). - Writing check: a quotation (
"…",“…”,「…」,『…』,«…»,„…“) is someone else's words, so the check skips it, as it already skips strikethrough. A page that quotes a requirement verbatim no longer failsstyle: strict(#331). - Skill: automatic pages are for replies to the user. A subagent's report back to its parent agent returns text and evidence instead of a page, unless the task asked for a page (#324).
- Skill: when a page has asks and the host can ask questions (Claude Code's AskUserQuestion), the agent writes the reply with the page link first, then asks, so the user can open the page before answering (#317).
Full list: #317, #321, #323, #324, #331, #332.
doc 页面的目录导轨
3 个及以上面板的 doc 页面,目录不再单独占一列,手机上也不再排在正文前面。目录变成正文旁的一条导轨:每个章节一道短刻度(#332)。
- 悬停刻度可以看到章节标题。在导轨上停留,或者点击、轻点它,会展开完整目录。滚动时会标出正在阅读的章节。
- 在 frontmatter 里写
outline: left或outline: right选择导轨放在哪一侧,默认是right。从右到左的页面左右镜像。 - 方向键在目录里移动,Esc 关闭。没有 JavaScript 时目录照样能展开、链接照样能跳转。打印时隐藏导轨。
- 在 390px 宽的手机上,24 个章节的页面现在紧接着标题就是正文,原来要到 y=889px 才开始。
- doc 页面变窄(916px,原来是 1120px)并且居中,标题和正文对齐。
通过 Tailscale 在手机上看页面
am serve --tailscale 只监听这台机器的 Tailscale 地址,所以 tailnet 里的手机或其他设备可以直接打开 link: 那一行的链接,不需要 SSH,也不改动 Tailscale 设置。链接在重启后仍然有效;要让所有链接失效,先停掉服务,删除 ~/.answer-me-with-html/serve-secret,再重新启动(#323)。
其他改动
- 标注: 标注弹窗可以全程用键盘操作:
1–4选标签,Ctrl/⌘+Enter保存,没保存就关掉的弹窗会保留草稿。标注模式下,Tab能走到每个块,Enter或Space打开它的弹窗(#321)。 - 写作检查: 引号里的文字(
"…"、“…”、「…」、『…』、«…»、„…“)是别人的原话,检查会跳过,和删除线一样。原样引用需求的页面不会再因为style: strict而无法生成(#331)。 - Skill: 自动生成页面只用于给用户的回复。子代理交回给父代理的报告返回文字和证据,不做页面,除非任务明确要求页面(#324)。
- Skill: 页面里有提问、并且宿主可以提问(Claude Code 的 AskUserQuestion)时,agent 先写带页面链接的回复,再提问,用户可以先打开页面再作答(#317)。
v0.5.7
2026年10月21日
Fix a draft in place
When a draft has errors, am render now lists every one of them at once, in line order, instead of stopping at the first (#314):
✗ L6 [flow] flow: unclosed shape bracket, missing )
✗ L9 Cannot parse the draft: table has no delimiter row: put |---|---| on the line under the header row
✗ L14 [flow] flow: unclosed shape bracket, missing )
✗ 3 errors in the draft; no page was written
draft: ~/.answer-me-with-html/drafts/My-page-20261021-104551.md
- A draft sent on stdin (
am render -) that fails, or renders with warnings, is saved underdrafts/in the data directory, and its path is printed. EveryL<line>matches that file. - The agent changes only the flagged lines in that file and runs
am render <path>, instead of writing the whole draft again. Once it renders with no warnings, the saved draft is deleted. am cleanremoves old drafts the same way as old pages.- Frontmatter errors and an unclosed fence still stop at once, because nothing after them can be read.
Other changes
- Tables: a table with no
|---|row under its header, or with a different number of cells in that row, is an error with a corrected example, instead of rows of text full of pipes (#313). - Layout: a fractional
cols,spanorrows(such ascols: 2.5) is an error, instead of invalid CSS that took the whole sheet down to one column (#315). - Diagrams: a long
flowedge routed around the outside of the layout is no longer cut off at the edge of the drawing (#312).
Full list: #312, #313, #314, #315.
在原文件里修草稿
草稿有错误时,am render 现在按行号一次列出全部错误,不再遇到第一处就停(#314):
✗ L6 [flow] flow: unclosed shape bracket, missing )
✗ L9 Cannot parse the draft: table has no delimiter row: put |---|---| on the line under the header row
✗ L14 [flow] flow: unclosed shape bracket, missing )
✗ 3 errors in the draft; no page was written
draft: ~/.answer-me-with-html/drafts/My-page-20261021-104551.md
- 从 stdin 传入的草稿(
am render -)渲染失败或有警告时,会保存到数据目录的drafts/里,并打印路径。报错里的每个L<行号>都对应这个文件。 - agent 只改这个文件里报错的行,再运行
am render <路径>,不用把整份草稿重写一遍。渲染成功且没有警告后,保存的草稿会被删除。 am clean会像清理旧页面一样清理旧草稿。- frontmatter 错误和未闭合的代码块仍然立即停下,因为后面的内容已经无法读取。
其他改动
- 表格:表头下面缺少
|---|分隔行,或分隔行的列数和表头不一致,会报错并给出改正后的示例,不再输出成一行行带竖线的文字(#313)。 - 布局:
cols、span、rows写成小数(如cols: 2.5)会报错,不再写出无效的 CSS 让整个面板网格变成一列(#315)。 - 图表:
flow图里绕到外侧的长连线,不再在图的边缘被裁掉(#312)。
v0.5.6
2026年10月20日
Text size
Pages can now be read at a larger or smaller size (#302):
am config set scale 1.2 # 0.8 to 1.5, in steps of 0.05; 1 is the default- Every text size on the page grows or shrinks with the setting. Diagrams and charts grow as a whole, so their text still fits its boxes. The toolbar keeps its size.
- A− / A+ in the page toolbar change the size on the page itself. The browser remembers the choice for the next pages; under
am serveit lasts for the tab. - On a phone the toolbar scrolls sideways, so Theme and Mode can be reached again.
- Catalog themes follow the setting. Run
am theme updateto get the new versions.
Built in four steps: #306, #307, #309, #310.
Other changes
- Questions: the suggested option in an
askblock no longer starts selected, so a reader who skips a question does not look as if they answered it. The reply says(not answered; suggested: X)(#289). - New catalog theme: Anthropic Clay, a muted reading theme with light and dark modes:
am theme add anthropic-clay(#297). - When the data directory cannot be written (a sandbox that allows writes only in the workspace), pages go to a private folder in the system temporary folder, with a notice (#295).
flowrejects Mermaid-style node IDs such asA[Start]with a clear error, instead of drawing extra nodes (#296).- Duplicate panel IDs are an error (#278). Panels past the 26th get
P27,P28…, which a draft can also write, and the duplicate check sees them (#304). - A draft saved as UTF-8 with BOM keeps its
# Title(#290). kv cols=2.5is an error instead of a grid that silently drops to one column (#303).- Sequence-diagram notes and the donut total are drawn at the size they were measured for (#306).
Full list: #278, #289, #290, #293, #295, #296, #297, #303, #304, #306, #307, #309, #310.
文字大小
页面文字现在可以放大或缩小(#302):
am config set scale 1.2 # 0.8 到 1.5,步长 0.05;默认是 1- 页面上所有文字都会跟着这个设置放大或缩小。图表整体缩放,所以图里的文字仍然放得进框里。工具栏保持原来的大小。
- 页面工具栏的 A− / A+ 可以直接在页面上调整。浏览器会记住你的选择,之后打开的页面也用这个大小;用
am serve打开时,只在当前标签页有效。 - 手机上的工具栏可以左右滑动,主题和模式选择又能点到了。
- 主题市场里的主题也会跟随这个设置。运行
am theme update获取新版本。
其他改动
- 问题:
ask代码块里的建议选项不再默认选中,没作答的读者不会看起来像是已经回答了。回复里写的是(not answered; suggested: X)(#289)。 - 新主题:陶土书院(Anthropic Clay),一款色调柔和的阅读主题,支持浅色和深色:
am theme add anthropic-clay(#297)。 - 数据目录不能写入时(宿主沙箱只允许写工作区),页面会存到系统临时目录里的私有文件夹,并给出提示(#295)。
flow遇到 Mermaid 风格的节点 ID(如A[Start])会给出明确的错误,不再画出多余的节点(#296)。- 面板 ID 重复会报错(#278)。第 26 个之后的面板编号为
P27、P28……,草稿里也可以手写,重复检查同样能发现(#304)。 - 以带 BOM 的 UTF-8 保存的草稿,
# 标题不再丢失(#290)。 kv cols=2.5会报错,不再悄悄变成单列(#303)。- 时序图的注释和环形图中间的总数,按测量时的字号绘制(#306)。
完整列表: #278、#289、#290、#293、#295、#296、#297、#303、#304、#306、#307、#309、#310。
详细ChangeLog