Skip to content

Fix subject-verb agreement in mermaid-maker.md - #6

Open
lunar-me wants to merge 1 commit into
amosblomqvist:mainfrom
lunar-me:fix-docs/issue-001
Open

lunar-me wants to merge 1 commit into
amosblomqvist:mainfrom
lunar-me:fix-docs/issue-001

Conversation

@lunar-me

@lunar-me lunar-me commented Sep 1, 2026

Copy link
Copy Markdown

Summary

This PR fixes a grammar issue in agents/mermaid-maker.md (line 15).

Problem

Subject-verb agreement: the compound subject lists three items but takes the singular verb "is". A compound subject joined by commas requires a plural verb.

The problematic text:

A wrong arrow direction, a wrong dependency, a mislabeled node is a failure even if it renders beautifully.

Fix

Replaced with:

A wrong arrow direction, a wrong dependency, a mislabeled node are a failure even if it renders beautifully.

Type of Change

  • Documentation fix (grammar, spelling, logical error)
  • Code change
  • Breaking change

Checklist

  • Documentation files only
  • No code changes
  • Fix verified against original text

liuxincuit added a commit to liuxincuit/learn that referenced this pull request Sep 15, 2026
render_svg 的两级回退扩成三级:rsvg-convert → magick → headless
Chrome/Edge 截图。本机前两级都不存在(MISSING),所以这一级是 SVG 那一半
唯一的活路;浏览器取 _common.ts 已有的 findChrome() / findEdge(),零新依赖。

- viewport 必须等于 SVG 的声明尺寸:独立 SVG 文档按自身尺寸画在 viewport
  左上,窗口更大只留白、不缩放。intrinsicSize() 解析 width/height(仅认裸
  数字或 px)→ viewBox 第 3/4 个数 → 800x600,夹到 [32, 4000]。
- --user-data-dir 落在 sessionId 键的 staging 目录里,并行 maker 不共享
  profile;实测两个 headless 实例并发互不干扰。
- 失败信息改为汇总三级尝试。已知取舍:畸形 SVG 时 Edge 退出码仍是 0(PNG
  里是 Chromium 的红色解析错误页),所以"返回错误文本"只剩文件未生成/超时
  触发。

验证:testbed 里派 svg-maker 画数轴,write → 预览 render → 发布 render 全
链路通过,产出 viz-number-line-minus2-0-1p5-1789470102966.png(1600x380,
实看图:-2 / 0 / 1.5 三点间距正确、无裁切);staging 目录里的
browser-profile/ 证明走的是浏览器而非前两级。intrinsicSize() 单测 9 组用例
全过(stroke-width 不误匹配、100% / 12cm 回退 viewBox)。

- skills/visualize/SKILL.md:79:渲染后端说明补上浏览器回退。
- ADAPTATION.md:差异 amosblomqvist#6 改已解决;新增 2.6 节记回退链实测事实;第 7 节加
  SVG 端到端验证行;进度 amosblomqvist#6 结案。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant