首页 / 更新日志

更新日志

更新于 2026-11-03

MarkdownAura v1.8.1

v1.8.1 2026-11-03

MarkdownAura 1.8.1

MarkdownAura v1.8.0

v1.8.0 2026-10-24

Updates choose their source by region. A self-hosted endpoint now answers first: in mainland China it returns a manifest pointing at the Gitee mirror, everywhere else it redirects to GitHub. The installer is still verified against the same public key, so a mirror can never substitute a different binary, and a missing mirror falls back to GitHub.

ctrl shift tab now appears in the help sheet. The dispatcher has supported "previous tab" for several releases; the shortcut table only listed ctrl tab.


更新源按地区分流。 新的自托管端点先答:中国大陆返回指向 Gitee 镜像的清单,其他地区 302 到 GitHub。安装包仍用同一把公钥校验,镜像换不掉包;镜像不可用时自动回退 GitHub。

帮助面板补上 ctrl shift tab。 分发器一直支持「上一个标签页」,只是快捷键表漏了这一条。

MarkdownAura v1.7.2

v1.7.2 2026-10-18

MarkdownAura 1.7.2

修正 1.7.1:宽 / 撑满 下的窄表格应贴文本栏的左沿,而不是窗口的左沿。 1.7.1 的规则把表格的 margin-inline 从 auto 改成 0,那把它对齐到了 .prose(窗格)的左沿——但文本栏本身是在窗格里居中 的(.prose > * 的 max-width: var(--measure); margin-inline: auto),所以段落都在居中的栏里,只有表格贴到了 窗口左边。方向反了。

正确的做法是让表格占据栏宽、内容留在起始处:表格本来 width: max-content(贴合自己的网格,所以 "框内靠左"无从谈起),改成 width: var(--measure) 就让这个块等于栏宽,网格仍在块的起始——再配上原有的 margin-inline: auto,这个块连同网格正好落在段落下方。max-width: 100% 兜住唯一一种 --measure 超出窗格的 情况(窗宽小于 140ch 时):此时块取窗格宽、与段落一致,而不是溢出。

  • 两条规则、只对表格、只对 宽 / 撑满。 窄 与 舒适 照旧:栏贴着阅读宽度,小表格在栏里居中。
  • 根因是列宽来自 --measure 而不是"靠左"这个词。 表格没有独立的栏容器可对齐,直接推 margin-inline 只会 推到 auto 的起点之外——而"起点"是窗格,不是居中的栏。让块等于栏宽是把对齐交给同一套 max-width + margin-inline: auto,与段落用同一条规则。
  • 属性选择器不变:--measure 到那时是一个解析后的长度,选择器匹配不了,src/measure.ts 把档位 id 写在 :root[data-measure] 上(mockup 同步)。

设计文件同步:design/SPEC.md §3 那一条改写为"栏的左沿,不是窗格的左沿",并把这段错误留在注释里; design/prose.css 的规则注释同样记录了它。

验证(实测,2600×1200 的 mockup —— 这次特意让栏明显窄于窗格,1.7.1 的测法在窄窗格下两沿重合,看不出错): 插一张 66px 宽的表格,量首个单元格与段落(即栏左沿)、窗格左沿的距离 ——

档位 --measure 窗格左沿 文本栏左沿 表格框左沿 首格左沿 结果
窄 485px 258px 1070px 1279px 1279px 栏内居中
舒适 809px 258px 908px 1279px 1279px 栏内居中
宽 1132px 258px 746px 746px 747px 贴栏左沿
撑满 100% 258px 258px 258px 259px 贴栏左沿

(首格 +1px 是 th 的半像素边框。)另测边界:窗格 2600px、宽 下表格框宽 1132px(= 栏宽);窗格缩到 700px 时 max-width: 100% 生效、框宽 632px(= 窗格),网格在框内横向滚动、不溢出窗格。node design/check-prose-css.mjs 与 npx tsc --noEmit 通过。


MarkdownAura 1.7.2

Fix to 1.7.1: at wide / full, a narrow table belongs at the text column's left edge, not the window's. 1.7.1's rule turned the table's margin-inline from auto to 0, which aligned it to .prose (the pane) — but the column itself is centred in the pane (.prose > * carries max-width: var(--measure); margin-inline: auto), so while paragraphs sit in the centred column the table jumped to the window's left. The direction was wrong.

The fix is to make the table take the column's width and leave its content at the start: the table is width: max-content (it hugs its grid, so "left within the box" is meaningless), and width: var(--measure) gives that box the column's width while the grid stays at the box's start — with the existing margin-inline: auto the box, and the grid inside it, land under the paragraphs. max-width: 100% covers the one case the measure exceeds the pane (a window narrower than 140ch): the box takes the pane, as a paragraph does, instead of overflowing.

  • Two declarations, tables only, wide / full only. narrow and comfortable are unchanged: the column is close to the reading width there, and a small table sits centred inside it.
  • The root cause is that the column's width comes from --measure, not from the word "left". A table has no column container of its own to align against, so pushing margin-inline merely pushes it past auto's start — and the start is the pane, not the centred column. Giving the box the column's width hands the alignment to the same max-width + margin-inline: auto a paragraph uses.
  • The attribute selector is unchanged: --measure is a resolved length by then and no selector can match on it, so src/measure.ts writes the preset id onto :root[data-measure] (the mockup mirrors it).

The design files follow: the design/SPEC.md §3 bullet now says "the column's edge, not the pane's" and keeps the mistake on the record, and the design/prose.css rule's comment does the same.

Verification (measured, mockup at 2600×1200 — deliberately a viewport where the column is clearly narrower than the pane, since 1.7.1's test let the two edges coincide): a 66px-wide table was inserted and the first cell's distance from the paragraph (the column's left edge) and from the pane's left edge was measured —

Preset --measure Pane left Column left Table box left First cell Result
narrow 485px 258px 1070px 1279px 1279px centred in the column
comfortable 809px 258px 908px 1279px 1279px centred in the column
wide 1132px 258px 746px 746px 747px at the column's left
full 100% 258px 258px 258px 259px at the column's left

(the +1px on the cell is th's half-pixel border). Boundaries too: at 2600px the box is 1132px (the column) under wide; at a 700px window max-width: 100% caps it to 632px (the pane) and the grid scrolls inside rather than overflowing. node design/check-prose-css.mjs and npx tsc --noEmit pass.

MarkdownAura v1.7.1

v1.7.1 2026-10-18

MarkdownAura 1.7.1

修复:宽 / 撑满 下,比栏宽窄的表格现在靠左。 阅读栏是一条居中的栏(max-width: var(--measure); margin-inline: auto 落在 .prose 的每个直接子元素上),所以一个比栏窄的块会被居中。这在 窄 60ch、 舒适 100ch 下是对的——栏本身就贴着阅读宽度,小表格落在中间和周围的文字属于同一块;但在 宽 140ch 与 撑满 下,栏比绝大多数表格宽得多,居中的表格会从它所属的段落里"漂"出去——每个段落都从栏的左沿起排, 表格也该从那里起排。

  • 只对表格、只对 宽 / 撑满。 段落、标题、代码块、图表卡片照旧,窄 与 舒适 的表格也照旧居中: 改动是一条针对 .prose > table 的规则,命中 :root[data-measure="wide"] / ="full" 时才把 margin-inline 从 auto 改成 0。
  • 和栏一样宽的表格不受影响。 它本来就被 var(--measure) 夹到栏宽(更宽的还会在栏内横向滚动), margin-inline: 0 正是 auto 本来放它的位置——所以这一条只改变"更窄的表格落在哪"。
  • 档位名是 CSS 唯一推不出来的东西。 --measure 到那时已经是一个解析后的长度(像素或 100%), 选择器无法按它匹配;src/measure.ts 因此把档位 id 写到 :root[data-measure] 上(每次 applyMeasure 都写,属性与它旁边的长度不可能不一致),mockup 写同一个属性以免两边漂移。

设计文件同步:design/SPEC.md §3 新增一条,"一列到底"那一节现在写明了窄表格在两档下的对齐; design/prose.css 的规则自带这段理由,并说明为什么用属性选择器而不是 --measure 本身。

验证(实测):design/mockup.html 加载的是发布用的同一份 prose.css,在 1600×1000 下把四档逐档 点过一遍,向一个 .prose 里插一张 66px 宽的表格并量它与段落左沿(即栏左沿)的距离 ——

档位 --measure 栏左沿 表格左沿 结果
窄 485px 570px 779px 居中(779 = 570 + (485−66)/2)
舒适 809px 408px 779px 居中(779 = 408 + (809−66)/2)
宽 1132px 258px 258px 靠左
撑满 100% 258px 258px 靠左

node design/check-prose-css.mjs 全通过,npx tsc --noEmit 通过。


MarkdownAura 1.7.1

Fix: at wide and full, a table narrower than the column now hugs its left edge. The reading column is a centred one (max-width: var(--measure); margin-inline: auto on every direct child of .prose), so a block narrower than the column is centred. That is right for narrow 60ch and comfortable 100ch — the column there is close to the reading width, and a small table sitting in the middle reads as part of the text around it. At wide 140ch and full the column is very much wider than most tables, and a centred one floats away from the paragraphs it belongs to: every paragraph starts at the column's left edge, so the table should too.

  • Tables only, and only wide / full. Paragraphs, headings, code fences and diagram cards are untouched, and so are tables at narrow and comfortable: the change is one rule on .prose > table that turns margin-inline: auto into 0 when :root[data-measure="wide"] / ="full" matches.
  • A table as wide as the column is unaffected. It is already clamped to the column by var(--measure) (and one wider still scrolls inside it), which is exactly where auto had put it — so the rule only changes where the narrower ones sit.
  • The preset name is the one thing CSS cannot derive. By the time the rule matters --measure is a resolved length (pixels or 100%) that no selector can match on, so src/measure.ts writes the preset id onto :root[data-measure] (every applyMeasure, so the attribute can never disagree with the length beside it) and the mockup writes the same attribute so the two do not drift.

The design files follow: a new bullet in design/SPEC.md §3, whose "one column for everything" section now states the alignment at both ends, and the rule in design/prose.css carries the reasoning and why it is a selector on an attribute rather than on --measure itself.

Verification (measured): design/mockup.html loads the shipped prose.css; at 1600×1000 every preset was clicked through, a 66px-wide table was inserted into a .prose, and its distance from the paragraph left edge (the column's left edge) was measured —

Preset --measure Column left Table left Result
narrow 485px 570px 779px centred (779 = 570 + (485−66)/2)
comfortable 809px 408px 779px centred (779 = 408 + (809−66)/2)
wide 1132px 258px 258px left
full 100% 258px 258px left

node design/check-prose-css.mjs and npx tsc --noEmit pass.

MarkdownAura v1.7.0

v1.7.0 2026-10-17

MarkdownAura 1.7.0

新增:阅读宽度第四档 宽 140ch。 起因是宽屏(带鱼屏)上"两头都不合适":舒适 100ch 太窄, 撑满 又是一整行。实测把这件事说清楚了——3440×1440、两侧面板都开、正文 15px 下(design/mockup.html 的同一套字体与同一份 components.css):

档位 --measure 实测栏宽 占内容区 每行字符
窄 60ch 485px 16% 60
舒适 100ch 809px 27% 100
宽(新增) 140ch 1132px 38% 140
撑满 100% 2948px 100% ≈364

原来的阶梯在一次按键里从 27% 跳到 100%——中间是空的,而 撑满 在 3016px 窗格上约 350 字符一行 (成文时的一段),正文基本没法读。新增的 宽 不是把这个缺口填满(可读区间里的任何值都填不满), 而是把这一跳变成 16% → 27% → 38% → 100%。

  • 单位保持 ch,没有用百分比。 百分比档会随窗口把行一起拉长,那正是 撑满 已经写明并保留的代价; ch 是唯一能让行宽"窗口多大都还读得下去"的单位。三个测量档都是 ch,撑满 仍是 100%。
  • 140 是判断而不是区间,所以它是唯一值得调的数。 它超出 docs 站与代码托管常用的 80–120, 这是有意的(它仍然是"一栏",只是更宽);换一台别的超宽屏,改 src/measure.ts 里 MEASURES.wide.ch 一个数即可,tooltip 照旧报出解析后的像素与占比。
  • 四档是数据不是代码。 菜单、ctrl shift M 循环、状态栏那一栏、沉浸栏与设置里的分段控件全部由 MEASURES / MEASURE_ORDER 生成,UI 代码一行未动;Measure 联合类型、i18n 的 measure.wide (en wide / zh 宽)、mockup 里那张并行表同步跟上。
  • 旧会话不受影响。 会话里存的是档位名,缺字段回落默认 舒适;更早的 xwide 也是这样静默回落的。

设计文件同步:design/SPEC.md §3/§8/§10(四档 + 超宽屏实测与"这是可调的那一档"), design/tokens.css、design/components.css、design/check-prose-css.mjs 的档位列举, 两份 README 的"阅读"行与新增的一段说明。

验证(实测):mockup 在 3440×1440 下逐档点过一遍,栏宽 485 / 809 / 1132 / 2948px,状态栏标签 60ch / 100ch / 140ch / full,菜单四项;设置里的分段控件 224px、窗口缩到 420px 仍不裁切(只压缩标签列)。 node design/check-prose-css.mjs 全通过,npx tsc --noEmit 通过,npm run build 通过,cargo test 通过。


MarkdownAura 1.7.0

New: a fourth reading-width preset, wide 140ch. It comes from the ultrawide screen where both ends disappoint: comfortable (100ch) is narrow and full is a whole line. The measurement says it plainly — at 3440×1440 with both panels open and the prose at 15px (the mockup's own font and the same components.css):

Preset --measure Column Share of the content area Characters per line
narrow 60ch 485px 16% 60
comfortable 100ch 809px 27% 100
wide (new) 140ch 1132px 38% 140
full 100% 2948px 100% ≈364

The old ladder went from 27% of the content area to 100% in one keystroke — the middle was empty, and full runs ~350 characters a line (a paragraph) at 3016px. wide does not close that gap (nothing inside the readable range can), it makes the step honest: 16% → 27% → 38% → 100%.

  • The unit stays ch, not a percentage. A percentage rung grows the line with the window, which is the cost full already states and keeps; ch is the only unit that keeps a line readable whatever the window size. The three measured rungs are ch; full is still 100%.
  • 140 is a judgement, not a band, so it is the one number worth retuning. It sits past the 80–120 that docs sites and code hosts run at, deliberately (it is still a column, just a wide one); on a different ultrawide, one value in src/measure.ts (MEASURES.wide.ch) is the whole change, and the tooltip keeps reporting the resolved width and its share.
  • The four presets are data, not code. The menu, the ctrl shift M cycle, the status-bar chip, the immersive chip and the settings row are all generated from MEASURES / MEASURE_ORDER; no UI code moved. The Measure union, the i18n key (measure.wide, wide / 宽) and the mockup's parallel table follow.
  • An old session is unaffected. It stores the preset name; a missing field falls back to comfortable, the same silent fallback the removed xwide got.

The design files follow: design/SPEC.md §3/§8/§10 (the four rungs, the ultrawide measurement, and "this is the tier to retune"), the preset lists in design/tokens.css, design/components.css and design/check-prose-css.mjs, and both READMEs (the Reading row plus a new paragraph on the ladder).

Verification (measured): every preset was clicked through in the mockup at 3440×1440 — columns of 485 / 809 / 1132 / 2948px, status-bar labels 60ch / 100ch / 140ch / full, a four-item menu; the settings segment is 224px and still fits with the window at 420px (only the label column compresses). node design/check-prose-css.mjs, npx tsc --noEmit, npm run build and cargo test all pass.

MarkdownAura v1.6.1

v1.6.1 2026-10-15

MarkdownAura 1.6.1

修复:编辑过一次之后,分屏的滚动同步在"外界驱动"方向上死掉。 报告的症状:在分屏里进入编辑模式、 再退出,此后滚动右侧(渲染)窗格时左侧源窗格不动——直到用户先手动滚动一次左侧,两个方向才都活过来, 而再一次进出编辑又会把它带回去。实测(built app + CDP 时序追踪 scrollTop 写入)拆出三个级联缺陷, 只少一个都复现不出完整症状:

  • 隐藏的编辑器把可见窗格的滚动偷走了(src/ui/document.ts scrollerOf)。两个编辑器视图在模式结束 后仍驻留——它们的 state 里存着撤销历史,这是设计——但 scrollerOf 此前只问"这个窗格有没有编辑器", 于是把外界的滚动目标解析到 display: none 的宿主 里:零几何、读者永远看不见,syncSplit 量到的 viewOf 全是 0,写入的目标也落在那里。修复:只在窗格带着自己的 editing 类时才交出编辑器 scroller—— 那个类正是 syncEditor 切换状态的同一处,谁也不能跟谁撒谎。
  • 进/出模式没有交接阅读位置(src/main.ts enterEdit / leaveEdit)。模式切换会触发 paintActive → renderDocument,后者用 tab.scroll 恢复滚动——而那个像素是 500ms 防抖的会话保存在另一种状态下 捕获的,恢复进来就是错的位置(编辑循环后落到页顶)。修复:两个方向都在状态翻转前走 capturePosition()(锚点+比例的描述,三个视图都认),重绘完再 applyPosition(from)——与视图切换 (setView)已有的交接完全同构,SPEC §5 那句话现在覆盖两种切换。
  • applyPosition 只写一个窗格(src/ui/document.ts)。另一半的跟进靠 scroll 事件,程序化赋值不 产生事件;写到一半、另一半留在原地(正是"退出后源窗格停在页顶"的最后一块)。修复:split 视图双写, 并把跟随方的目标写进 expectedScroll 回声表——与用户驱动同步的记账方式一致,两个半片不会互相推。

设计文件同步:design/IMPL.md §9"分屏同步的 bug 面"从两条细节改写为三条(隐藏宿主的裁决规则是新增 一条,附实测证据),§9 的视图切换条目扩写为"视图切换与进出编辑模式都走锚点交接、split 双写 + echo"。

验证(实测,不是读代码):Release 式时钟序 —— 只读态 out→pane 跟随;进出模式后编辑器落在阅读处 而非页顶;编辑器滚动驱动 out(比例 ~1.55);退出后窗格保留位置(此前是 0);out→pane 双向驱动在循环后 仍存活。npx tsc --noEmit、npm run build、design/check-prose-css.mjs 全部通过。


MarkdownAura 1.6.1

Fixed: after one edit cycle, split-view scroll sync goes dead in the externally-driven direction. The reported symptom: enter the edit mode in a split, leave it again, and from then on scrolling the right (render) half left the left source pane behind — until the reader scrolled the left half by hand once, which brought both directions back, and another enter/leave undid it again. Driving the built app with CDP scrollTop write traces split it into three cascading defects, and missing any one of them fails to reproduce the whole thing:

  • A hidden editor stole the visible pane's scroll (src/ui/document.ts scrollerOf). Both editor views stay mounted after the mode ends — their states carry the undo history, by design — but scrollerOf asked only "does this pane have an editor", resolved scroll targets into the display: none host: zero geometry, invisible to the reader, and both the viewOf the sync measured and the targets it wrote landed there. The fix hands the editor scroller over only while the pane carries its own editing class — the same flag syncEditor toggles, so the two cannot disagree.
  • Neither entering nor leaving the mode handed the reading position over (src/main.ts enterEdit / leaveEdit). Mode changes repaint through paintActive → renderDocument, which restores from tab.scroll — a pixel captured by the debounced session save in a different state, so restoring it lands the reader wherever that save happened (the top of the document, after an edit cycle). Both directions now capturePosition() before the flag flips and applyPosition(from) after the repaint — the same handoff a view switch (setView) already got; SPEC §5's sentence now covers both kinds of switch.
  • applyPosition wrote one pane (src/ui/document.ts). The twin follows on scroll events, which a programmatic assignment does not dispatch; one half moves, the other stays where it was — the last piece of the "source pane stuck at the top after leaving" report. In split view both halves are written, and the follower's target goes into the expectedScroll echo the same way a user-driven sync records it.

The design file follows: design/IMPL.md §9's split-sync bug surface grew from two details to three (the hidden-host adjudication rule is the new one, with the measured evidence), and the view-switch entry now covers "a view switch and entering or leaving the edit mode anchor-carry the position, split writes both halves + echo".

Verification (measured, not read): release-style clockwork — read-only out→pane follows; on entering, the editor mounts at the reading place rather than the top; editor scrolling drives out (ratio ≈ 1.55); on leaving, the source pane keeps its place (it landed at 0 before); both directions of the drive survive the cycle. npx tsc --noEmit, npm run build, and design/check-prose-css.mjs all pass.

MarkdownAura v1.6.0

v1.6.0 2026-10-15

MarkdownAura 1.6.0

阅读轨迹:打开过的每一份文档和文件夹都会被记住,而且你停在哪一节,再打开时就回到那一节。 这是这个阅读器第一次有了"历史"——此前它只有 session.recent:十条文件夹路径,没有时间、没有位置,显示为完整路径(菜单里八条、空状态里三条),而且只是"打开过哪些文件夹"。

  • 三处入口,全部是屏幕上已有的东西,没有新增 chrome。 标题栏的标记(原来只是一块没有任何 handler 的装饰)现在是应用菜单:recently opened 在最上面,随后是设置 / 帮助 / 关于;标签条的 ⋯(all tabs)菜单在标签列表之后多了一段 recently opened(滤掉已打开的,所以同一个名字不会出现两次);ctrl shift P 照旧是那个扁平菜单,只是行变得有用了:名字 · 目录 + 右侧时间,末尾 全部 N 条 —— 打开列表。
  • 浮层是主表面:按最后触碰分组(今天 / 昨天 / 本周 / 更早——不是按第一次打开,三月份打开、今早又读过的文档属于"今天"),可过滤,每行第二行是 读到 §<标题>,路径已不存在的条目加删除线,底部 clear history(上界 100 条 / 90 天,写在浮层的页脚里,而不是藏在一个没人知道的常量里)。
  • 打开即恢复。 位置存的是标题文本 + 文档比例——绝不是 heading id(id 每次渲染重新分配,跨会话的 id 指向空气;这也是 §5 的 outlineHit 是字符串的原因),而且解析走的是解析出的标题表,不是 textContent(渲染器给每个标题塞了一个 # 锚点,文本比对会永远落空)。标题没了就退回到比例。落进去的位置会在跳转之前写回标签页,这样紧随其后的防抖保存不会把"刚恢复的地方"覆盖成"文档顶部"。
  • 有界,独立成文件。 reading-trail.json 在 session.json 旁边——绝不在它里面:那个文件 500 ms 防抖重写一次,且 version 不认识就"干净开始",追加型列表放进去会同时放大写入量和升级风险。session.recent 瘦身成一个事实:下次启动恢复哪个文件夹。missing 是派生的(trail_list 时逐个 stat),不入库。
  • 没有新增 chrome、没有新增设置、没有存储迁移。 标题栏的标记从一个装饰变成了控件(它现在是 <button>,这也把它从拖拽区名单里解救出来——no-drag 只认 .titlebar button/.tab/input,一个 div 加 click 在构建版里什么都不做)。Tab.outlineHit 从"存在、未接线"变为真的接线(SPEC §5 的 v1 状态因此更新)。
  • 刻意不做:diff 视图(那是另一个渲染器)、"最常阅读"排序(opens 已记录,将来要用就是一行)、侧栏里的常驻历史(§1 纵向空间给正文、§3 第二个面板是大纲)。原型阶段考虑过的第三种形态在 mockup 里被否掉了。

验证:先在 mockup 里成型(IMPL §11 记着原型定下的事),再按 IMPL §10 的办法真机验证——cargo build --release 出的二进制(内嵌的是 dev URL,故前端由 Vite 提供)+ MARKDOWNAURA_BROWSER_ARGS=--remote-debugging-port=9222,三处入口逐一点过(真窗口里标记是 <button> 且 -webkit-app-region: no-drag,拖拽区吞点击的坑已实测排除);恢复路径两种都走了:标题命中(toast 已回到 §Engines, measured,标题落在滚动容器顶下方 12px,精确)与标题不存在(回落到文档 40% 处,且落定后存下来的标题自愈为读者真正所在的 Engines);missing 行删除线、过滤、esc、clear history 全部实测。cargo test 103 通过(新增 12,全部围绕轨迹的规则:上限、去重、窗口按最后触碰、位置只更新已知条目、百分比夹取、原子写不留临时文件、missing 派生不入库),npx tsc --noEmit、check:prose、check:rawhtml 通过。

真机跑出来两个 bug,都已修:missing 原本用 #[serde(skip)],结果字段既进不了文件、也进不了 IPC 响应——浮层把已删除的文件画成还在;改为单独的线上类型 EntryView(Entry + 派生的 missing),"文件里永不存派生事实"成了类型层面的事实。滚动侦测的宽容度是 8px,而跳转把标题停在 12px 处——于是每次跳转(大纲点击、脚注回跳、轨迹恢复)报告的都是上一节,轨迹存的就是错的;两个数字现在是一个具名契约 ANCHOR_OFFSET。两处都写进了 IMPL §11。

存储:reading-trail.json 与 session.json 并列,绝不塞进它——那个文件 500 ms 防抖重写、version 不认识就"干净开始",追加型列表放进去会同时放大写入量和升级风险。session.recent 只剩一个事实:下次启动恢复哪个文件夹。


The reading trail: every document and folder you open is remembered, and opening it again goes back to where you stopped. This is the first "history" the reader has had — until now there was only session.recent: ten folder paths, no timestamps, no position, printed as raw paths (eight in a menu, three in the empty state), and only for folders.

  • Three entry points, all already on screen, no new chrome. The window mark (until now a decoration with no handler at all) is the app menu: recently opened on top, then settings / help / about. The ⋯ (all tabs) menu gains a recently opened section below the tab list — filtered to what is not already open, so the same name never appears twice. ctrl shift P stays the flat menu of eight, but its rows are useful now: name · directory with the time on the right, ending in all N — open the list.
  • The sheet is the main surface: grouped by last touch (today / yesterday / this week / earlier — not first open; a document opened in March and read this morning belongs under today), filterable, one row per entry with read to §<heading> as the second line, a path that is gone struck through, and clear history in the footer. Bounded — 100 entries, 90 days — with both numbers printed in the footer instead of hidden in a constant.
  • Opening a document resumes it. The position is the heading's text plus the fraction of the document — never a heading id (assigned per render, so it points at nothing after the next one) — and it is resolved against the parsed headings, not textContent (the renderer puts a # anchor chip inside every heading, so a text compare silently finds nothing). A heading that is gone falls back to the fraction. The resumed position is written into the tab before the jump, so the debounced save that follows cannot overwrite the place it just resumed with "the top".
  • Bounded, and in its own file. reading-trail.json beside session.json — never inside it: that file is rewritten on a 500 ms debounce and treats an unknown version as "start clean", so an append-only list in it would grow every state write and make that rule dangerous. session.recent is now one fact: which folder to reopen. missing is derived (trail_list stats each path) and never stored.
  • No new chrome, no new setting, no storage migration. The title bar's mark turned from a decoration into a control (it is a <button> now, which is also what lifts it out of the drag region — no-drag only names .titlebar button/.tab/input, so a div with a click handler would have looked right and done nothing in the built app). Tab.outlineHit went from "present, not wired" to wired (SPEC §5's status is updated).
  • Deliberately not done: a diff view (a different renderer), a "most read" sort (opens is recorded; using it is one line), a permanent history in the sidebar (§1 gives vertical space to content, §3's second panel is the outline). The third candidate shape was rejected in the mockup, on the spot.

Verified — prototyped in the mockup first (IMPL §11 keeps what driving it settled), then on the real app per IMPL §10: cargo build --release + the frontend from the Vite dev server, driven over CDP with MARKDOWNAURA_BROWSER_ARGS=--remote-debugging-port=9222. All three entry points clicked in the built window — the mark is a <button> with -webkit-app-region: no-drag, so the drag region does not swallow it (the trap was called out in IMPL §11 before it was tested). Both resume paths driven: the heading resolves (toast 已回到 §Engines, measured, the heading lands 12px below the scroller top — exact), and the heading does not exist (falls back to 40% of the document, and the stored heading heals to the one the reader is actually under). The sheet's missing row is struck through, the filter narrows to one row, esc closes, clear history empties the list and the mark's tooltip falls back. cargo test 103 passing (12 new, all around the trail's rules: the cap, case-insensitive dedupe, the window by last touch, positions only updating known entries, the clamped percentage, an atomic write that leaves no temp file, and a derived missing that is never stored), npx tsc --noEmit, check:prose and check:rawhtml clean.

Two bugs the real run found, both fixed: missing used #[serde(skip)], which keeps a field out of the file and out of the IPC response — the sheet drew a deleted file as if it were there; the fix is a separate wire type (EntryView), so "the file never stores a derived fact" is now a type-level fact. And the scroll-spy's slack was 8px against a jump that lands a heading 12px down, so every jump (outline clicks, footnote back-refs, the resume) reported the previous heading and the trail stored it; the two numbers are now one named contract (ANCHOR_OFFSET). Both are recorded in IMPL §11.

MarkdownAura v1.5.4

v1.5.4 2026-10-14

MarkdownAura 1.5.4

阅读宽度(窄 / 舒适 / 撑满)现在对代码区和渲染区是同一个行为。 此前 --measure 只落在渲染区 (.prose > *)和编辑态的代码栏(.cm-content)上:分屏时右半随预设变窄、左半仍是整个窗格宽;源码视图 更彻底——那个视图里两个渲染窗格都是 display: none,src/measure.ts 找不到可度量的 .prose,于是 在源码视图里改预设对眼前的窗格毫无作用(任何窗口宽度都一样)。

  • 一条规则,四个栏面。 .source-view pre 与 .view.split .pane-src pre 现在和渲染区一样带 max-width: var(--measure) + margin-inline: auto;编辑态本来就是同一个 token(.cm-editor .cm-content),所以只读态切成编辑态不再让文字换行位置动一下。
  • 接受一个已写明的后果:token 是按正文字体解析的像素值,源码窗格是等宽字体,所以同一个预设 给出同一个像素栏宽、只是每行字符数不同(components.css 与 SPEC §3 都写着)。这是"两半同栏、 屏幕上只有一个数字"的代价,也是分屏两半能对齐的前提。
  • 源码视图补了一块"可度量表面"。 该视图新增一个空的、离屏的 .prose.measure-host(index.html), 因为 ch 预设必须有已布局的 .prose 才能解析:它用 visibility: hidden 而不是 display: none (后者会让它不可度量),并且是绝对定位——每个视图都是 flex 行,一个带 margin-inline: auto 的 空流内项会把自由空间吃掉。
  • mockup 的那套假编辑器跟着修。 栏放在 .editor(两层共同的容器)而不是 <textarea> 上:后者是 block formatting context,要避开 readonly-pill 的浮动,auto 边距因此按"窗格减掉药丸"求解 (实测左 107px / 右 167px),光标相对字形漂 31px。mockup 的 resolveMeasure 原来硬编码 #out-preview(在预览之外的视图里是 display: none,量到 0),现在与 src/measure.ts 一致:第一个 已布局的 .prose。
  • 没有新设置、没有存储变化、没有渲染器改动。 动的是两个设计文件、index.html、src/measure.ts 的注释,以及两份 README 的阅读行。

验证(实测,不是读代码):应用前端跑在 Chromium + Vite dev server 上(真实的 index.html、 main.ts、measure.ts、真实样式表),用真实的 ctrl shift M 走 setMeasure → applyLayout → applyMeasure;分屏里给两个窗格都放上内容后,三档下代码栏与渲染栏逐档相等:窄 420 / 420、 舒适 809 / 809、撑满 1025 / 1025。源码视图里改预设现在真的会动(485 / 809 / 全窗格),此前三档都是 976。mockup 里同一套断言在只读态与编辑态都成立(源码视图 485/809/976,分屏 420/465/465,textarea 与 高亮层同框同宽)。design/check-prose-css.mjs 新增 7 条断言(四个栏面 + 宿主存在且不可 display: none), 并做了反向验证:清空那条栏规则会得到 2 条 FAIL,删掉宿主会得到 3 条 FAIL。npm run typecheck、 check:prose、check:rawhtml 三个闸门通过。


The reading width (narrow / comfortable / full) now behaves the same in the code pane and the rendered pane. --measure used to reach only the rendered pane (.prose > *) and the editable code column (.cm-content): in a split the render half narrowed with the preset while the source half stayed the full width of its pane, and the source view was worse — with it up, both rendered panes are display: none, so src/measure.ts had no laid-out .prose to resolve ch against and picking a preset changed nothing at all on the pane in front of the reader, at any window size.

  • One rule, four surfaces. .source-view pre and .view.split .pane-src pre now carry the same max-width: var(--measure) + margin-inline: auto the rendered pane uses; the editable pane already shared the token (.cm-editor .cm-content), so entering the mode no longer moves the text.
  • One consequence, stated: the token is a pixel value resolved against the prose font and the source pane is mono, so the same preset is the same pixel column with fewer characters per line (it is written down in components.css and SPEC §3). That is the price of one column and one number on screen — and what makes the two halves of a split line up.
  • The source view gained a measurable surface. An empty, off-screen .prose.measure-host (index.html), because a ch preset needs a laid-out .prose to resolve against: it hides with visibility: hidden, never display: none (which would make it unmeasurable), and it is absolutely positioned — every view is a flex row, and an empty in-flow item with margin-inline: auto would eat the free space beside it.
  • The mockup's faked editor follows. The column sits on .editor, the box both layers fill, rather than on the <textarea>: a textarea is a block formatting context that has to keep clear of the readonly-pill float, so its auto margins were resolved against the pane minus the pill (107px left against 167px right, measured) and the caret drifted 31px off the glyphs. The mockup's resolveMeasure also hard-coded #out-preview — display: none outside the preview, and therefore zero — and now matches src/measure.ts: the first laid out .prose.
  • No new setting, no storage change, no renderer change. Two design files, index.html, the comments in src/measure.ts, and the Reading row of both READMEs.

Verified (measured, not read): the app front end ran in Chromium against the Vite dev server (the real index.html, main.ts, measure.ts and stylesheets) and the real ctrl shift M path (setMeasure → applyLayout → applyMeasure). With content in both panes of a split, the code column and the render column are equal in all three presets: narrow 420 / 420, comfortable 809 / 809, full 1025 / 1025. In the source view a preset now moves the pane (485 / 809 / the whole pane) where all three used to be 976. The same assertions hold in the mockup, read-only and editing (source view 485/809/976, split 420/465/465, textarea and highlight layer in the same box at the same width). design/check-prose-css.mjs gained seven assertions (the four column surfaces, plus the host being present and not display: none), negative-tested: emptying the column rule gives two failures, removing the host three. npm run typecheck, check:prose and check:rawhtml pass.

MarkdownAura v1.5.3

v1.5.3 2026-10-14

MarkdownAura 1.5.3

编辑模式下,光标所在的那一行现在被标了出来。 进入编辑(ctrl E)本来只有三处信号:药丸变成 editing、窗格底色从 --code 换成 --bg、出现光标。光标停在哪一行要靠自己找;现在那行有底色,它的行号 也从 --tx-3 提到 --tx-2。这是对已有模式的一处补强,不是新能力。

  • 两半是同一个动作,分别给文字和行号。 highlightActiveLine() 给行元素加 cm-activeLine, highlightActiveLineGutter() 给它的行号格加 cm-activeLineGutter。行号格只提亮字色、底色仍是 透明——给它填色会在阅读栏旁边多出一列色带,而这一格本来只承担"参照"。
  • 颜色是新令牌 --active-line,不是强调色。 亮色 rgba(0, 0, 0, .045)、暗色 rgba(255, 255, 255, .05),各自叠在窗格底色 --bg 上(合成后 #f4f4f4 / #2b2a2e,两套的步进 恰好都是每通道 11/255)。刻意不用 --ac-bg:这一格里强调色已经表示选中,当前行同色会把落在这行上的 选区吞掉(暗色下两者只差一档),也违背 SPEC §8 的"一个强调色"。行与行号的值全部住在 design/tokens.css / design/components.css,所以换主题不需要任何 JavaScript。
  • 只读态一行代码没动。 编辑器只在编辑模式里在场(只读态是那个 <pre>),所以当前行高亮不可能漏进 读者的干净栏位,也不需要额外的开关。
  • .cm-line 写进选择器是有原因的。 CodeMirror 自带规则是 &light .cm-activeLine(两个类)并涂固定 的 #cceeff44,在两个主题上都不对;同类数下我们只赢在样式表顺序上,而颜色不该依赖顺序。加上 .cm-line 成为三个类,结果与顺序无关。
  • 没有新设置、没有存储格式变化、没有渲染器改动。 只动 src/ui/editor.ts 的扩展表、两个设计文件 (tokens.css、components.css)、SPEC §12 与两份 README 的编辑行。

验证:这是 §12 里第一个不用 Tauri 外壳验证的改动,用的是 IMPL §10 的方法——var/ 下的临时页 (已删)通过 dev server 加载真实的 src/ui/editor.ts 与真实的样式表,按 index.html 的容器标记 挂载两个窗格,全部实测而非读代码:编辑态首帧(状态刚由 show 建出、focus 后没有任何派发)当前行已经 带上类,说明它来自插件自己的初次计算;两个窗格各自只有一行被标(源码栏 15px、分栏 13.005px);类落在 .cm-line 上、行号类落在 .cm-gutterElement 上;revealRange 一动它就跟着走;两种主题令牌都解析成 rgba(0, 0, 0, .045) / rgba(255, 255, 255, .05),而不是 CodeMirror 自己的 #cceeff44(那正是"输在 它对等规则上"的样子);合成后的一步之差是像素事实,由截图与 Chromium 自身的合成量出。npx tsc --noEmit 干净,design/check-prose-css.mjs 与 design/check-raw-html.mjs 两个设计闸门通过。 mockup 的 <textarea> 显示不了当前行(包住它的是高亮层,不是排版引擎),SPEC §12 已把它记为 mockup 的 第三处"假"。


The editable pane now marks the line the caret is on. Entering the mode (ctrl E) used to give three signals — the pill reading editing, the pane's background stepping from --code to --bg, and a caret — and finding which line you were on was left to your eye. That line now carries a tint, and its number in the gutter steps from --tx-3 to --tx-2. A refinement inside a mode that already exists, not a new capability.

  • One thing in two halves, for the text and for the number. highlightActiveLine() adds cm-activeLine to the line element, highlightActiveLineGutter() adds cm-activeLineGutter to its gutter cell. The cell only brings forward its colour and stays transparent — filling it would put a second column of colour beside the reading column, and that cell is a reference, not content.
  • The colour is a new token, --active-line, and it is deliberately not the accent. rgba(0, 0, 0, .045) light and rgba(255, 255, 255, .05) dark, each over the pane's --bg (#f4f4f4 / #2b2a2e once composited, an 11/255 step per channel in both). The accent already means selected in this pane, so a current line in --ac-bg would swallow the selection sitting on it (the two are one step apart in dark), and §8's one-accent rule says nothing else is saturated. Every value lives in design/tokens.css / design/components.css, so a theme switch needs no JavaScript at all.
  • The read-only state is untouched. The editor is only on screen while the mode is on (read-only is a <pre>), so the tint cannot leak into the reader's clean column and needs no switch of its own.
  • .cm-line is in the selector on purpose. CodeMirror's own rule is &light .cm-activeLine (two classes) painting a fixed #cceeff44, wrong on both themes; at equal specificity we would only win on stylesheet order, and a colour should not depend on order. Three classes makes the outcome order-independent.
  • No new setting, no storage change, no renderer change. Only the extension list in src/ui/editor.ts, the two design files (tokens.css, components.css), SPEC §12 and the editing row in both READMEs.

Verified — the first change to §12 that was driven without the Tauri shell, using IMPL §10's method: a throwaway page under var/ (since deleted) loaded the real src/ui/editor.ts and the real stylesheets through the dev server, mounted both panes into the app's own container markup, and measured rather than read: the mode's first frame (state just created by show, focused, no dispatch at all) already carries the class, so it comes from the plugin's own initial computation; exactly one line per pane is marked (source pane 15px, split pane 13.005px); the classes land on the .cm-line element and the .cm-gutterElement cell; the tint follows revealRange; and the token resolves to rgba(0, 0, 0, .045) / rgba(255, 255, 255, .05) in the two themes instead of CodeMirror's #cceeff44 — which is exactly what losing the tie would have looked like. The one-step difference is a pixel fact, so it was measured too: by screenshot, and through Chromium's own compositing. npx tsc --noEmit is clean and both design gates (check-prose-css.mjs, check-raw-html.mjs) pass. The mockup's <textarea> cannot show a current line (it sits over a highlighter, not a layout engine), which SPEC §12 now records as the mockup's third fake.

MarkdownAura v1.5.2

v1.5.2 2026-10-13

MarkdownAura 1.5.2

两处对齐修好,都在"关于"面板与它的同类界面里。 不是新功能,是两种"看着差不多、量出来不齐"的排版问题。

  • 品牌行的四个文字事实不再各站各的。 MarkdownAura、版本号、MIT、主页链接原本靠 .about-brand { align-items: center } 按盒子居中,而它们用了三种字号(16 / 11.5 / 12 px): 盒子等高不代表基线等高,量出来 16px 的标题比右侧小字低 2.75px。改成 align-items: baseline 后 四条基线完全相同(差 0)。图标没有基线,单独 align-self: center 保持居中,没有被按到基线上。
  • 两种按钮从此共用一个高度。 新增令牌 --h-btn: 25px,.ghost-btn(描边)与 .primary-btn(填充) 共用;填充那个的纵向内边距从 7px 收到 3px,否则它的内容把盒子撑回 32px。此前填充按钮高 32.125px、 它旁边总有的描边按钮 24.675px,所以任何一对都不同高:关于面板的「检查更新 / 下载并安装」差 7.46px(这一行写了 align-items: center,错位就露在那儿)。空状态与未保存对话框看着是平的,但那 是偶然——它们的容器是 display: flex 且没写 align-items,默认 stretch 把描边按钮拉到了填充按钮 的高度。现在两个基类自身等高,层级只由填充色和字号承担,不再由盒子高度承担。

验证:mockup 实渲染逐个量(不是读代码)。品牌行四条基线 301.25 / 301.25 / 301.25 / 301.25,差 0; 按钮高度在三个位置(关于 / 空状态 / 未保存)全部 25px,两两相等;三处截图逐一看过。npm run build (tsc --noEmit + vite)通过,cargo test 通过,design/check-raw-html.mjs 与 design/check-prose-css.mjs 两个设计闸门通过。

没有功能改动、没有渲染器改动、没有新设置、没有存储格式变化。只动了 design/tokens.css、 design/components.css 与 design/SPEC.md §8(把这条规则写进视觉语言)。


Two alignment fixes, both in the About sheet and the rows it shares its button styles with. No new feature — these are two cases of "looks close enough, measures uneven".

  • The four text facts on the brand line no longer sit at four different heights. MarkdownAura, the version, MIT and the homepage link were centred by .about-brand { align-items: center } — which centres boxes — while they are set at three sizes (16 / 11.5 / 12 px). Equal boxes are not equal baselines: the 16px name sat 2.75px below the metadata beside it. align-items: baseline puts all four on one baseline (spread 0). The mark has no baseline, so it keeps align-self: center and stays centred instead of being dropped onto the line.
  • Both button weights now share one height. A new token --h-btn: 25px is used by .ghost-btn (outline) and .primary-btn (filled); the filled one's vertical padding drops from 7px to 3px, without which its content inflated the box back to 32px. The filled button was 32.125px and the outline button it always sits beside was 24.675px, so no pair ever matched: in the About sheet "check for updates / download and install" differed by 7.46px (that row sets align-items: center, which is where it showed). The empty state and the unsaved dialog looked even, but only by accident — their containers are display: flex with no align-items, so the default stretch pulled the outline button up to the filled one's height. The two base classes are now equal by themselves; hierarchy is carried by fill and type size, never by box height.

Verified by measuring the real mockup (not by reading the code). The brand line's four baselines are 301.25 / 301.25 / 301.25 / 301.25 — spread 0; button heights are 25px in all three places (About, empty state, unsaved dialog), pairwise equal; all three were checked in screenshots. npm run build (tsc --noEmit + vite) passes, cargo test passes, and the design/check-raw-html.mjs and design/check-prose-css.mjs design gates pass.

No behaviour change, no renderer change, no new setting, no storage change. Only design/tokens.css, design/components.css and design/SPEC.md §8 (where the rule is recorded) were touched.

MarkdownAura v1.5.1

v1.5.1 2026-10-13

MarkdownAura 1.5.1

ctrl S 不再闪一下、不再把光标弄丢。 在源码编辑模式下保存后,编辑栏会短暂切回只读再切回,光标随之消失。 两个原因叠加,都不是"刷新了错的窗口"这么简单:

  • 本工具自己的写入被当成了外部改动。 保存走 temp + rename(原子替换),文件监视器把这一串报告成普通的 变动事件,而应用只按"文件变了"处理——于是一次保存触发两轮完整重绘:保存路径自己那一次,以及约 120 ms 后监视器那一次。现在 save_doc 记下自己写入后的 mtime,监视器丢弃仍带这个 mtime 的事件:盘上就是 屏幕上已有的东西,没有可重载的。外部改动照旧即时重载(这条规则只认"还是我们刚写的那份文件")。
  • 编辑栏的存亡取决于"手上有没有文本"。 重读期间文本会短暂缺失,而应用把"没有文本"读成了"这一栏不是 编辑器",于是把光标所在的那一层隐藏、把只读层换回来——焦点随之丢失,光标不再绘制。现在这一栏的身份由 模式决定,文本缺失时不下发:光标、选区、撤销历史都不会被动到。

顺带修好一个同源的边角:编辑中的文件被删掉时,重载读到的是空串(不是空文档),过去会把缓冲区抹成空;现在 不下发,缓冲区留着,保存仍按 SPEC §12 拒绝写入已消失的文件。

验证(真机,不是读代码):CDP 时间线上,修复前保存后 211 ms 出现 #editor-split 被隐藏、.pane-src 去掉 editing、只读层显示,269 ms 起第二轮重绘,结束时 document.activeElement 是 body;修复后只有一轮 重绘、无翻转、focusedAfter: true、.cm-cursor 在。cargo test 91 通过(新增 2 条),tsc --noEmit 干净,异地改动仍即时重载。小文档不会复现这个缺陷(预览重绘短于监视器的 120 ms 去抖窗口),所以它看起来 "偶尔才闪一次"。

没有渲染器改动、没有新设置、没有存储格式变化。


ctrl S no longer flashes the pane or drops the caret. Saving in the source-editing mode briefly swapped the editable pane back to the read-only sheet and back, and the caret disappeared with it. Two causes, and neither is just "the wrong pane was refreshed":

  • The app's own write came back as an external change. Saving replaces the file through a temp file plus a rename, which the file watcher reports like any other change — and the app treated every one of them as somebody else's edit. One save therefore repainted the whole document twice, about 120 ms apart. save_doc now records the mtime it left behind and the watcher drops an event for a file that still carries it: the disk already holds what is on screen, so there is nothing to reload. An external write still reloads at once.
  • The pane's existence depended on having the text in hand. During a re-read the text is briefly absent, and the app read "no text" as "this is not an editor" — hiding the very element the caret was in and putting the read-only layer back. Focus went with it, so the caret stopped being drawn. The mode now decides which pane this is; a text that has not arrived is simply not pushed, which leaves the caret, the selection and the undo history alone.

One related corner is fixed with it: when the file being edited is deleted, the reload reads an empty string (not an empty document) and used to wipe the buffer. It is no longer pushed, and saving still refuses to write into a file that is gone (SPEC §12).

Verified on a real build (CDP timings, not by reading the code): before the fix, 211 ms after a save #editor-split was hidden, .pane-src lost editing, the read-only layer was shown, a second repaint started at 269 ms and document.activeElement ended up as body; after it, one repaint, no flips, focusedAfter: true, the cursor element present. cargo test 91 passed (two new), tsc --noEmit clean, external edits still reload live. A small document never reproduced this (its preview repaint is shorter than the watcher's 120 ms debounce), which is why it looked like an occasional flash.

No renderer change, no new setting, no storage change.

MarkdownAura v1.5.0

v1.5.0 2026-10-13

MarkdownAura 1.5.0

A link in a document now goes somewhere. Until now every link in the preview was a dead click: the webview tried to navigate to it and CSP refused, which from the reader's side is the same as nothing happening. Each destination is classified and routed (SPEC §13):

  • a URL — http, https, mailto — opens in the system browser, through the same tauri-plugin-opener the About sheet's GitHub line already used;
  • another Markdown file becomes a tab of this window, pinned rather than a preview tab;
  • any other local file opens the file manager on its folder with the file selected;
  • #id scrolls the document already open — the footnote references and their ↩ back-references are ids the renderer itself writes, so those work.

The details that decide whether this feels right:

  • A relative destination resolves against the folder of the document that carries it, never against the app. Absolute paths work as written, including the percent-encoded form markdown produces for backslashes (E:%5Cdocs%5Ca.md), and file:///C:/docs/a.md is read as the path it names — the form a copied browser address bar has. Protocol-relative (//host/a.md) is still a URL.
  • A destination that is not on disk says so — nothing at C:\… — instead of opening a tab that fails or a file manager on an empty folder. [x]() does nothing at all: a link with nowhere to go.
  • A click never navigates the webview. Every a[href] click is intercepted before it is classified: an <a href> left to itself navigates the app away from the document, and CSP turns that into precisely the dead click this release removes.
  • Whether a path is Markdown is decided in one place. The classification stops at "a path on this machine" and the click asks isMarkdownPath — the extension list still lives in one file, with no second copy in Rust.

The capability widened from one URL to three schemes. It used to allow exactly the About sheet's GitHub URL; it now allows https://*, http://* and mailto:*. Anything else — a vscode: link, a data: URI — is still refused by the capability layer rather than by app code, and the reader is shown the URL so they can act on it themselves.

Nothing else about reading changed: no new setting, no storage change, no renderer change.


文档里的链接现在真的会去该去的地方。 在此之前,预览里的每个链接都是死链:webview 试图导航到它,而 CSP 拒绝,从读者角度看就是"点了没反应"。现在每个指向都会被分类并送到该去的地方(SPEC §13):

  • URL(http / https / mailto)交给系统浏览器,走的是"关于"面板里 GitHub 那行早就用的同一个 tauri-plugin-opener;
  • 另一个 Markdown 文件开成本窗口的标签页,是固定标签而不是预览标签;
  • 其它本地文件在资源管理器中打开所在目录并选中该文件;
  • #id 在已打开的文档内滚动——脚注引用与它们的 ↩ 回跳是渲染器自己写下的 id,所以可用。

几个决定"用起来对不对"的细节:

  • 相对路径以承载它的文档所在目录为基准,而不是以应用为基准。绝对路径按原样解析,包括 markdown 为反斜杠 生成的百分号编码形式(E:%5Cdocs%5Ca.md);file:///C:/docs/a.md 按它命名的路径读取——这正是从浏览器 地址栏复制出来的形式。协议相对地址(//host/a.md)仍然算 URL。
  • 盘上不存在的目标会直说——… 处没有文件——而不是打开一个失败的标签页、或在空目录上打开资源管理器。 [x]() 什么也不做:那是一个无处可去的链接。
  • 点击永远不会让 webview 导航。 每个 a[href] 的点击都在被分类之前就拦截:放任的 <a href> 会把应用 从当前文档上导航走,而 CSP 会把它变成死链——正是本次要消除的东西。
  • "路径是不是 Markdown"只由一处决定。 分类止步于"这是本机的一个路径",随后由点击去问 isMarkdownPath——扩展名表仍然只存一份,Rust 侧没有副本。

capability 从"一个 URL"放宽到"三种 scheme"。 它原本只允许"关于"面板里那条 GitHub 地址;现在允许 https://*、http://* 与 mailto:*。其它一律仍被权限层拒绝,而不是被应用代码拒绝——读者会看到那条 URL 本身,可以自行处理。

其余阅读行为没有变化:没有新设置项、没有存储格式改动、没有渲染器改动。

MarkdownAura v1.4.3

v1.4.3 2026-10-09

MarkdownAura 1.4.3

A window that was minimised when the session was saved could not be brought back. Windows gives a minimised window its iconic rectangle — 272×91 at (-32000, -32000) was what one session held — and the app stored it and honoured it on the next launch: the window was there, 32000px to the left of everything and the size of a postage stamp. Worse, the single-instance rule then hands every new launch to that invisible window, so restarting does not help. Two guards, both measured before they were written:

  • saving keeps the last good rectangle while the window is minimised, so the icon rectangle is never stored in the first place;
  • restoring ignores a rectangle smaller than the window's own floor (720×480) or one that overlaps no monitor that exists now — a laptop undocked since the session was written has no screen where the second one used to be, and honouring that rectangle puts the window out of reach by the same route. An ignored rectangle leaves the default window: 1200×800, centred, and the session is healed on the spot.

And the window no longer grows by a frame on every launch. The session stored the outer size while setSize sets the inner one, so each restart added the frame: measured 1000×700 → 1016×709 → 1032×718. It now stores the inner size, and the round trip is exact.

Nothing else changes: these three fixes, the two read-only window permissions they need (is-minimized, available-monitors), and the notes that say why. The PDF export that was developed alongside them is not part of this release — it was withdrawn before it was ever committed.


最小化时保存的窗口矩形,会让应用再也回不来。 Windows 给最小化窗口报的是图标矩形(一次会话里 存的就是 272×91 @ (-32000,-32000)),应用把它记下来、下次启动照它摆放:窗口确实存在,但在离所有东西 32000 像素之外、只有邮票大小。更糟的是单实例机制会把之后每次启动都交给那个看不见的窗口,所以重启也没用。 两条护栏都是先量后写:

  • 保存时窗口处于最小化 → 不写几何,沿用"最后一次正常"的矩形,图标矩形根本没机会落盘;
  • 恢复时矩形小于窗口自身下限(720×480)、或与当前任何显示器都不相交(拔了扩展屏的笔记本,第二块 屏的位置已经没有屏幕了,照它摆放同样会把窗口放到够不着的地方)→ 忽略它,保持 lib.rs 建好的默认窗口: 1200×800 居中,并当场把会话治好。

另外,窗口不再每启动一次就长大一圈。 会话存的是外框尺寸,而 setSize 设置的是内框,于是每次 重启都加上一条边框的宽度:实测 1000×700 → 1016×709 → 1032×718。现在存内框,往返精确。

其余不变:就是这三处修复、它们需要的两条只读窗口权限(is-minimized、available-monitors),以及记录 "为什么这样做"的设计笔记。与它们同期开发的 PDF 导出不在本次发布内 —— 它从未提交就已撤除。

MarkdownAura v1.4.2

v1.4.2 2026-10-08

MarkdownAura 1.4.2

Live reload works when the app was started from the command line with a relative path. It was silently dead there: the file watcher reports absolute paths, while a tab opened through argv kept the relative one, and the two never compared equal — so an edit made in another program did not reach the preview, and a file deleted under such a tab was never struck through as missing. Opening a folder from the dialog, or passing an absolute path, was unaffected, which is why it took a report to find. Paths are now resolved to absolute the moment the app adopts them — the command line, a second launch forwarded to the running window, and the folder the explorer opens — so the tree, the tabs and the watcher all speak one form. A session saved by an earlier version is migrated on read, including the duplicate tab that the old spelling could leave behind for a file opened both ways.

Nothing else changes: this release is the fix, a regression test for it, and the design notes that say why the resolution happens where it does.


从命令行用相对路径启动时,实时重载现在是有效的。 此前它在那里静默失效:文件监视器报告的是 绝对路径,而从 argv 打开的那个标签页保留的是相对路径,两者永远比较不相等——于是别的程序里改 了文件,预览不更新;在该标签下把文件删掉,也不会被划成 missing。从对话框打开文件夹、或传绝对路径都不 受影响,所以这个问题一直要等到有人报告才被发现。现在应用采纳路径的那一刻就把它解析成绝对路径—— 命令行、转发给已打开窗口的第二次启动、以及资源管理器打开的那个文件夹——于是文件树、标签页与监视器 说的是同一种形态。旧版本存下的会话会在读取时迁移,包括"同一文件被两种写法各开一次"留下的重复标签。

除此之外没有别的改动:本次就是这个修复、它的一条回归测试,以及说明"为什么解析放在那一处"的设计说明。

MarkdownAura v1.4.1

v1.4.1 2026-10-08

MarkdownAura 1.4.1

Switching views keeps your place. Moving between preview, split and source used to drop you at the top of the document: the position was captured after the view had already changed, so it read the fresh pane and stored zero, and a single pixel value means a different place in each view anyway (the panes wrap at different widths). The position now travels as anchors plus the fraction of the way between them — the same headings and diagram cards split-view sync already used — captured before the view changes and put back once the new pane has rendered. Measured on the example document: preview → split → source → preview returns to the same heading and, on a round trip, to the identical pixel; between two anchors the position matches to within 0.002 of the segment. While the source pane is being edited CodeMirror replaces the highlighted markup, so there the carry-over is proportional — right in direction, approximate in detail. Exact where it can be, honest where it cannot.

Opening a file that is already open no longer loses the tab you were reading. That path activated the tab without capturing the outgoing one's scroll position, so a single click in the explorer could reset where you were in the document you left. Found while auditing the docs against the code, which is also what the next paragraph is about.

The README and the design docs were checked line by line against the code, and 40 claims were wrong. Every one is fixed in this release; the corrections a reader can see are on the README's own pages: line endings are not shown in the status bar (encodings are, and a file with mixed endings is refused on save rather than silently normalised), the AppImage does not register itself as a file handler until it is integrated with the desktop (the deb does, and the app says so instead of failing quietly), the log is a 1 MB file with three rotations rather than a single 4 MB one, and a crash report is written for a panic — not for every abnormal exit. The design docs also lost a paragraph describing a WebView2 data directory probe that was never implemented, and gained the line-ending refusal they had been missing.


切换视图不再丢位置。 在预览、分屏、源码之间切换时,过去会掉回文档顶部:位置是在视图已经切换 之后才捕获的,读到的是刚亮起来的窗格(scrollTop 为 0),而且单一像素值在三个视图里本来也不是同一个 地方(各窗格的换行宽度不同)。现在位置以锚点 + 锚点之间的比例传递——就是分屏同步一直在用的那套 标题与图表卡片锚点——在切换视图之前捕获,新窗格渲染完成后落位。在示例文档上实测:预览 → 分屏 → 源码 → 预览 回到同一个标题,往返一次像素完全相同;两个锚点之间比例误差在 0.002 以内。源码窗格处于 编辑态时,CodeMirror 会替换掉带锚点的高亮标记,那里退化为比例映射——方向对、细节粗。能精确的地方 精确,不能的地方如实说明。

点开一个已经打开的文件,不再丢掉你正在读的那一页。 这条路径激活标签时没有捕获离开那个标签的滚动 位置,于是资源管理器里的一次单击就可能重置你原本读到哪儿。它是在"文档与代码对账"时被发现的,也就是 下一段说的那件事。

两份 README 与设计文档逐条对着代码核了一遍,40 处说法是错的。 全部在本次修复;读者能看到的部分 在 README 上:状态栏并不显示行尾(它显示编码,而行尾混用的文件在保存时会被拒绝而不是静默统一)、 AppImage 在未与桌面集成前不会把自己注册成文件打开方式(deb 会,且应用会明说而不是静默失败)、日志是 1 MB 加三个轮转而不是一个 4 MB 的文件、崩溃报告只为 panic 写(而不是每次异常退出都写)。设计文档还删掉了 一段描述"WebView2 数据目录探测"的条文——那段东西从来没有实现过——并补上了此前漏写的"行尾混用拒绝保存"。

MarkdownAura v1.4.0

v1.4.0 2026-10-08

MarkdownAura 1.4.0

Chinese and Japanese text writes emphasis the way it is read. 中文**"加粗"**中文 renders bold. CommonMark refuses that shape — its flanking rules treat an ideograph exactly like a Latin letter, so a ** before a quote cannot open and the run after the closing quote cannot close — and Chinese and Japanese have no word spacing, which makes the shape ordinary prose rather than an edge case. The widening is deliberately narrow: it applies only where the neighbour CommonMark refuses is CJK and the other side is punctuation, and it is additive by construction, so a run can only gain the emphasis its author typed. Whitespace still blocks both directions (中文**加粗 **中文 keeps its **), a Latin neighbour is untouched, and _ and *** are left to CommonMark. marktext, Typora and the VS Code preview widen the same shape.

The renderer now has a measuring stick. cargo test runs the vendored CommonMark 0.31.2 (652 examples) and GFM 0.29 (672) suites through the real pipeline and compares the HTML: 578/652 and 574/672 today, with every difference listed in a baseline file and grouped by reason — raw HTML the allow-list drops, a leading --- block read as frontmatter, pulldown nesting same-type emphasis where cmark flattens it, and GFM's autolink extension (which pulldown-cmark does not implement at all: a bare www.… or an unmarked email stays text, while <https://…> is core CommonMark and does link). Compliance can only go up: an example that starts passing while it is still listed fails the test, and one that starts failing while it is not listed fails it as well — so the next change to the allow-list or the footnote pass cannot quietly move the renderer away from the reference. The fixtures are test data under CC-BY-SA 4.0 and nothing of them ships.

A tab switch in the middle of a render no longer mixes two documents. Mermaid, d2 and graphviz cannot be cancelled, but their writes can: every paint now takes the container's generation and abandons itself whole when a newer paint has taken over — no cards, no language badges, no highlighting, no math from the document you just left.

Tabs have a right-click menu. Close, close others, close to the right, close all, copy path, show in explorer — acting on the tab you pointed at, and deliberately never activating it, because a right click that also changed what you are reading would lose your place. Closing a tab to the left of the active one keeps you on the same document; that path was reachable only from this menu, and without the fix it switched the reader to a different file.

Smaller things. The About sheet's diagnostic payload no longer computes a log size nothing displays. examples/showcase.md gained a display formula and the Chinese-emphasis paragraph. Both READMEs' Markdown row now says what the renderer actually does — GFM's tables, task lists, strikethrough and footnotes, and not its autolink extension.


中文按读法写强调,现在真的会成粗体。 中文**"加粗"**中文 渲染成粗体。CommonMark 拒绝这个形态—— 它的 flanking 规则把汉字当成拉丁字母,于是引号前的 ** 不能开、引号后的 ** 不能闭;而中日文没有词间 空格,所以这不是边缘情况,是日常写法。放宽范围刻意收得很窄:只在"被拒的一侧是 CJK、另一侧是标点"时生效, 并且只增不减,一个标记只能拿回作者写的强调。空白仍然双向阻断(中文**加粗 **中文 保持字面),拉丁 邻居不动,_ 与 *** 交给 CommonMark。marktext、Typora 与 VS Code 预览放宽的是同一个形态。

渲染器第一次有了尺子。 cargo test 把内置的 CommonMark 0.31.2(652 例)与 GFM 0.29(672 例)跑过 真实管线并比对 HTML:今天 578/652、574/672,每一处差异都列在基线文件里并按原因归类——允许名单 丢弃的 raw HTML、开头 --- 被当 front matter、pulldown 把同类强调嵌套而 cmark 摊平、GFM autolink 扩展 (pulldown-cmark 根本没有实现:裸 www.… 与邮箱仍是文本,而 <https://…> 是 CommonMark 核心、本来就是 链接)。契约是单向的:某例不再失败却仍列在基线里 → 测试失败;某例开始失败却不在基线里 → 测试失败。所以 下一次改动允许名单或脚注逻辑,不可能悄悄让渲染器偏离参考实现。夹具是 CC-BY-SA 4.0 测试数据,不随包发布。

渲染途中切换标签,不再把两篇文档混在一起。 mermaid、d2、graphviz 无法取消,但它们的写入可以: 每次 paint 取容器的代际号,一旦被新的 paint 取代就整体放弃——不再有上一篇文章的卡片、语言徽标、着色或公式 落进新的预览里。

标签页有了右键菜单。 关闭 / 关闭其它 / 关闭右侧 / 全部关闭 / 复制路径 / 在资源管理器中显示;作用在你 右击的那个标签上,且从不激活它——一次右击顺手换掉你正在读的东西,等于丢掉阅读位置。关掉活动标签左侧 的标签后仍停在同一篇文档;这条路以前只有菜单能走到,而没有修正时它会把读者换到另一个文件。

零碎。 关于面板的诊断数据不再计算一个从不显示的日志体积。examples/showcase.md 增加了独立公式段与 中文强调一节。两份 README 的 Markdown 行改成渲染器真正做的事——GFM 的表格、任务清单、删除线与脚注, 不含 GFM autolink 扩展。

MarkdownAura v1.3.1

v1.3.1 2026-10-08

MarkdownAura 1.3.1

A layout bug in the released build, fixed. 1.3.0 made a table hug its content and, in the same edit, capped it at 100% of the pane — which overrode the reading column's own cap. So at the narrow and comfortable widths, a table wide enough to fill up rendered wider than the text around it (measured: a 900px table inside a 600px column; full hid it because there the column is the pane). Only the width declaration changed: a table hugs its content and scrolls inside the column when it cannot fit, at every preset.

Code blocks carry their language and a copy button. Every block — fenced or indented, named or bare — gains a small row above it: the language the fence named (omitted when it named none) and copy this code. The row sits outside the block on purpose, because a control inside a horizontally scrolling block scrolls out of reach as soon as the code is wider than the column. Copying reads the code's text, so it works the same before and after the highlighter rewrites the markup.

A broken image says so. An image that fails to load keeps its alt — the author's description, and what the reader gets instead of the picture — inside a dashed box whose tooltip carries the reason. While an image is still on the wire the box reserves its height, so the paragraph below it stops moving when the bytes land.

Four tokens of its own, and a dashed thematic break. hr, the table borders, list markers, and the blockquote's text and rule no longer borrow the hairline and secondary-text values: they render identically today, and a theme can now move one without moving the other three. A document's --- is drawn 1px dashed, because every other horizontal line on the page — table borders, card hairlines, a quote's rule — is solid, and the one line that means "the subject changes here" has to look unlike them.

A failed engine load no longer poisons the session. A module whose import failed is no longer kept: the next diagram retries the import, instead of every later block of that engine failing instantly for the rest of the run with the same stale error.


MarkdownAura 1.3.1

修掉了已发布版本里的一个排版 bug。 1.3.0 让表格贴着内容,同时顺手把它的上限写成窗格宽度的 100%——这一条盖掉了阅读栏自己的上限。于是窄/舒适两档下,内容够宽的表格比周围的正文更宽(实测: 600px 的栏里出现 900px 的表格;full 档看不出来,因为那一档的栏就是窗格)。这次只改宽度声明: 表格贴着内容,装不下时在栏内横向滚动,三个档位都一样。

代码块带上语言徽标与复制按钮。 围栏块、缩进块、写了语言的和没写语言的都有这一行:语言(围栏没写 就不显示)与 copy this code。这一行刻意放在代码块外面——放在里面,代码比栏宽时按钮会跟着横向 滚动跑出视野。复制读的是代码文本,所以高亮前后完全一样。

图片加载失败会说清楚。 加载失败的图片保留作者写的 alt(读者至少知道那是什么图),装进虚线框, 原因放在悬停提示里。图片还在路上时先预留高度,字节到达时下面的段落不再跳一次。

四条自己的 token,分隔线改虚线。 hr、表格边框、列表标记、引用的文字与左边线不再借用细线和次要 文字的值:今天渲染结果一模一样,区别是主题可以单独调其中一条。文档里的 --- 画成 1px 虚线——页面上 其它横线(表格边框、卡片细线、引用左边线)都是实线,而唯一表示「话题在这里换」的那条必须与它们不同。

引擎加载失败不再毒化会话。 import 失败过的模块不再被缓存:下一张图会重新 import,而不是本会话 后续同引擎的每一块都拿同一个旧错误瞬间失败。

MarkdownAura v1.3.0

v1.3.0 2026-10-08

MarkdownAura 1.3.0

The preview now renders the things a reader notices are missing. Fenced code is highlighted per language (Prism, MIT: ~50 grammars in one lazily-loaded chunk, so a document without a code fence pays nothing for it), footnotes collect into one numbered section at the end with an ↩ back to every citation, and math typesets through KaTeX (MIT) — $…$, $$…$$, chemistry included. Math is a setting and it is off by default, because turning it on takes $ away from ordinary text and a document that talks about prices should keep talking about prices. Those two packages are the only dependencies this release adds.

An unknown language is not an error, and neither is a failed formula. A fence naming a language nothing ships stays plain monospace text — no badge, no warning, nothing in the status bar. A formula that will not parse keeps its place on the line with KaTeX's own marker and the reason in its tooltip, because swapping an inline formula for a block-level error card breaks the sentence it sits in.

Diagram cards got the parts that were missing. A card is opened the moment the fence is known — head, badge, zoom/copy, rendering… in a body that reserves its height — and filled when the engine answers, so a slow d2 block no longer pushes the page around twice. A card that fails keeps its identity: data-diagram and the source stay put, so the outline, the viewer's target and split-view scroll sync still find it; only zoom goes, because there is nothing to show. A rendered card is an image to assistive tech (role="img", named from the SVG's own <title>/<desc> or from the caption), and an engine SVG that has pixels but no viewBox gets one — without it max-width: 100% clips the drawing instead of scaling it (measured: a 900×120 SVG inside a 698px body rendered its box at 674px while the inner <rect> stayed at 900px).

Three style rules that matched nothing now work, and one row is simpler. li.task and .footnotes had been in prose.css from the start while the renderer emits a bare <li><input type=checkbox> and a .footnote-definition — so task checkboxes kept their bullet marker and the notes rendered unstyled with no way back. The table's width: 100% never reached the grid either (an anonymous table box does not take it); it is max-content now. And the About sheet's log row is one button: open. The files in that folder are the report, and the crash report a panic writes never went through the two buttons that were removed with it.

1.3.0 also carries everything 1.2.0 shipped — the crash-evidence log, in-place editing, and the three bundled diagram engines.


MarkdownAura 1.3.0

预览现在会渲染读者一眼就能看出缺失的东西。 代码围栏按语言着色(Prism,MIT:约 50 个语法放在一个懒加载 chunk 里,没有代码围栏的文档一分钱都不花),脚注收拢为文末一个编号区块、每条都有 ↩ 跳回引用处,公式由 KaTeX(MIT)排版——$…$、$$…$$,含化学式。数学是一项设置,且默认关闭:打开之后 $ 就不再是普通 字符,而一篇在讲价格的文档应该继续讲价格。本版只新增这两个依赖。

不认识的语言不是错误,公式渲染失败也不是。 围栏写了没随包的语言就保持纯文本——没有徽章、没有警告、 状态栏也不提。写坏的公式留在原处,带 KaTeX 自己的错误标记、原因放在悬停提示里;把行内公式换成块级错误卡片 会把所在的那句话拆断。

图表卡片补齐了缺的那几块。 围栏一出现卡片就开好——头部、引擎徽章、zoom/copy、正文里先写「渲染中」 并预留高度——等引擎给出结果再填入,慢的 d2 块不再让页面被推两次。渲染失败的卡片保留身份:data-diagram 与源码都还在,所以大纲、查看器目标、分栏同步仍然找得到它,只是没有 zoom(没有东西可看)。渲染好的卡片对 辅助技术是一张图(role="img",名字取自 SVG 自己的 <title>/<desc>,否则用卡片标题),而只有像素、没有 viewBox 的引擎 SVG 会被补上一个——没有它,max-width: 100% 是把图裁掉而不是缩小(实测:900×120 的 SVG 放进 698px 宽的容器,盒子缩到 674px,内部 <rect> 仍是 900px)。

三条从未匹配到任何东西的样式规则修好了,一行也变简单了。 li.task 与 .footnotes 从第一天就在 prose.css 里,而渲染器产出的是裸 <li><input type=checkbox> 与 .footnote-definition——于是任务清单的 复选框一直带着项目符号、脚注一直没有样式也没有回跳。表格的 width: 100% 同样从未作用到网格上(匿名 table 盒不接这个值),现在是 max-content。另外「关于」面板的日志行只剩一颗按钮:打开——那个文件夹里的文件本身 就是报告,而 panic 时自动写的崩溃报告从来不经过随之移除的那两颗按钮。

1.3.0 也包含 1.2.0 的全部内容——崩溃证据日志、按需就地编辑,以及三个内置的图表引擎。

MarkdownAura v1.2.0

v1.2.0 2026-10-06

MarkdownAura 1.2.0

A crash leaves evidence now. A shipped build had no way to say what went wrong: panic = "abort" with stripped symbols, no console behind a windowed process, and no handler for anything the page threw — so a crash on someone else's machine was a window that vanished and a reader with nothing to send. The app keeps a runtime log now, in %LOCALAPPDATA%\MarkdownAura\logs on Windows (Linux: $XDG_STATE_HOME, i.e. ~/.local/state/MarkdownAura/logs; a new directory, and Settings can point it anywhere — a synced folder is how a log from a second machine reaches you). One file, 1 MB rolled over four, with a five-minute heartbeat so the log says whether the process died or only the page did. A run that ends abnormally leaves a self-contained report in crash/: the panic message, the file:line it came from (that survives the stripping), the thread, the environment (WebView2 version, GPU, screen, locale), and the last 50 lines. The About sheet gained a logs row — open the folder, export a report to a file and reveal it, or copy it — and it says so when the previous run did not shut down cleanly, naming its id.

Nothing about that leaves the machine. No server, no endpoint, no telemetry: the log is a file you attach to an issue yourself, and the app still makes exactly one network call, the update check you click. What goes in the file is paths, counts, sizes, durations and error kinds — never a document, and never the arguments of a failed call.

Settings is only things you can change. The engines section and the watch-debounce read-out are gone: the engines already live in About (badges, licences, measured sizes) and in the status bar (their live health), and the debounce is an internal constant. Every remaining row changes something.

The About sheet's log row fits. export and copy replace the two longer labels, and the path row no longer pushes a button onto a second line — in either sheet, at any path length.


MarkdownAura 1.2.0

崩溃现在会留下证据。 之前发布的版本没法说明出了什么事:panic = "abort" 且符号被剥离,窗口子系统的进程背后没有控制台,页面抛出的异常也无人接管——于是别人机器上的一次崩溃,就是一个窗口消失,而用户手上没有任何东西可以发给你。现在应用会写运行日志:Windows 在 %LOCALAPPDATA%\MarkdownAura\logs(Linux 为 $XDG_STATE_HOME,即 ~/.local/state/MarkdownAura/logs;这是一个新增目录,且设置里可以把日志指到任何位置——指向同步目录,另一台机器的日志就能到你手里)。单文件 1 MB、轮转保留四份,另有 5 分钟一次的心跳——用来分辨是进程死了还是只有页面死了。异常结束的那次运行会在 crash/ 留下一份自包含报告:panic 消息、它来自哪一行(file:line,符号被剥离也还在)、线程、环境(WebView2 版本、显卡、屏幕、区域),以及最后 50 行日志。关于页新增 日志 一行——打开目录、把报告导出成文件并定位、或复制——并且当上一次运行没有正常退出时,它会指名叫出那次的 run id。

这些都不会离开你的机器。 没有服务端、没有上报端点、没有遥测:日志就是你亲手附到 issue 里的那个文件,而应用仍然只有一次网络调用——你点击触发的更新检查。文件里写的是路径、计数、体积、耗时和错误类型,绝不含文档内容,也绝不含失败调用的参数。

设置里只留能改的东西。 引擎段与「监视去抖」只读行已移除:引擎信息本来就在关于页(徽章、许可证、实测体积)和状态栏(实时健康点)里,去抖则是一个内部常量。剩下每一行都真的能改。

关于页的日志行不再折行。 导出、复制 取代了两个较长的按钮文案,路径行也不会再把按钮挤到第二行——两个面板、任意长度的路径都不会。

MarkdownAura v1.1.0

v1.1.0 2026-10-05

MarkdownAura 1.1.0

A document's images load now. Every ![alt](images/a.png) in every document was a broken icon. The renderer wrote the author's destination into the page exactly as typed, and a webview resolves a relative src against its own origin — http://127.0.0.1:1420 in development, tauri://localhost in the installer — never against the folder the document came from. Rendering now resolves each destination against the document's own folder and hands the webview an asset-protocol URL, the one origin the page's CSP lets an image through. Percent-encoding is decoded, so a%20b.png finds the file named a b.png; . and .. are resolved before the URL exists, because the protocol refuses any path that still holds a ..; a data: URI and a remote URL are left exactly as written, since the CSP is what decides about those.

The folder a document lives in is readable, however you reached it. The asset protocol is enabled with an empty scope and serves only what is added to it, and only open_folder ever added anything — so a document opened from Open markdown, the recent list, or Open with pointed its images at a folder the protocol refused, even once the rewrite existed. Opening a folder, resolving a path from the shell, and rendering a document (including the live preview beside the editor) all widen the scope to that folder now. The rewrite itself is a parameter of the renderer rather than a policy buried in it: a caller with no file behind the text gets its destinations left alone.


MarkdownAura 1.1.0

文档里的图片现在真的能显示了。 之前每一篇文档里的 ![alt](images/a.png) 都是碎图标。渲染器把作者写下的目标路径原样写进页面,而 webview 解析相对 src 用的是它自己的 origin——开发时是 http://127.0.0.1:1420,安装版是 tauri://localhost——从来不是文档所在的目录。现在渲染时会把每个目标路径按文档自身目录解析,再交给 webview 一个 asset 协议 URL,那是页面 CSP 唯一允许图片通过的来源。百分号编码会被解码(a%20b.png 找到的就是名为 a b.png 的文件);. 和 .. 在 URL 生成之前就消解掉,因为协议拒绝任何还带着 .. 的路径;data: URI 和远程地址原样保留——那些归 CSP 管。

文档所在目录一定可读,不管你是从哪儿打开它的。 asset 协议是开着、但 scope 为空,只服务被加进去的目录,而以前只有 open_folder 会往里加——于是从「打开 Markdown」对话框、最近列表或「打开方式」进来的文档,即使路径改写好了,图片指向的目录也照样被协议拒绝。现在打开文件夹、从命令行解析路径、渲染文档(包括编辑器旁边的实时预览)都会把该目录放行。路径改写本身也变成了渲染器的一个参数,而不是埋在渲染里的策略:文字背后没有文件的调用方,目标路径保持原样。

在 GitHub 上查看完整发布说明与全部版本

本页由 GitHub Release 自动生成,随新版本发布同步更新。