Releases: totok22/tencent-docs-publisher
Release list
0.1.14
Addresses the findings from the community plugin directory review.
Changed
- Declare the settings with Obsidian's declarative settings API, so every option shows up in settings search. This raises
minAppVersionto 1.13.0. - Style destructive buttons with
setDestructive()instead of the deprecatedsetWarning(). - Drop the redundant
README_EN.mdnow thatREADME.mdis the English readme; the language links point atREADME.mdandREADME_ZH.md. - Fill in release notes automatically when a tag creates a release.
Fixed
- Refresh the settings tab and the sidebar project list only after you confirm that a project should be removed; both used to re-render as soon as the confirmation dialog opened.
- Give the settings row that clears the remote page cache a label and description that match what it does; the button used to sit under an unrelated "publish history" row.
Full Changelog: 0.1.13...0.1.14
0.1.13
0.1.12
What's Changed
- Streamlined UI text and modal dialogs for clarity.
- Updated documentation with explicit network, authentication, and security disclosures.
- Added comprehensive English and Chinese documentation.
Assets
- main.js
- manifest.json
- styles.css
0.1.11
Changes
- Make context menus, command checks, startup, local tree discovery, binding calculations, and whole-tree preflight more responsive.
- Reuse fresh Tencent Docs page snapshots instead of immediately reading every bound page twice.
- Preserve Obsidian image size hints, including proportional height calculation for PNG, JPEG, GIF, BMP, WebP, and SVG images.
- Fix SVG dimension detection and reject malformed or zero-sized dimensions.
Validation
- TypeScript typecheck and production build passed.
- 10 test files and 76 tests passed.
- Production dependency audit found 0 vulnerabilities.
0.1.10
修正卡片首尾位置下的正文排版,都是复查 0.1.9 排版逻辑时发现的。
现在每一段正文都会解析出一个合法插入点,而不是把放不下的正文塞进前一段:
- 卡片是文档最后一块时,卡片后面的正文追加到文档末尾(已对真实文档实测:追加后正好落在卡片下方);
- 卡片是子页面的最后一块时,卡片下方没有合法落点,正文会排到卡片上方并在发布结果里说明原因;
- 卡片是页面第一块时,卡片之前的正文现在会给出提示,而不是静默排到卡片下方;
- 子页面永不再退化成“无锚点追加”——那会把内容写进文档根页面。
0.1.9
修掉两类误报与错误,都是对照真实文档复查时发现的。
行内提及子页面:如果本地链接不是独占一行(在表格单元格里、或者写在句子里),之前会把内部标记留在正文,保护检查随即以“内部错误”中止发布。现在这类提及会正常保留为文字。
假的“远端冲突”:腾讯在渲染文档时会自己算出并写回一些展示值——图片和公式块的 width/height、行内公式尾部的内部引用 id。这些值原本被算进内容指纹,导致你只要在腾讯文档里打开一下文档,插件就把每一页都标成“远端被改过”。现在比较内容时会忽略这些展示值,真正改动过的文字仍然会被识别出来。
说明:指纹规则变了,升级后第一次检查时,之前发布过的页面可能仍会显示一次“需要确认覆盖”。勾选覆盖并发布一次,之后就会恢复准确。
0.1.8
修正子页面位置与交互文案。
排版:正文现在按子页面卡片分段插入,不再全部挤到页面顶部。本地 Markdown 里独立成行的子页面链接会被当作分界:卡片前后的正文各自留在卡片那一侧,你在腾讯文档里拖动过卡片之后,重新发布也会按新位置排版。如果两张卡片紧挨在一起(接口不允许在卡片之间插入内容),发布时会明确提示你拖动卡片,而不是默默把正文挪走。
交互与文案:右键菜单、命令、弹窗、状态标签和设置项都改成说明“会发生什么、下一步该做什么”,插件菜单项归到独立分组并且只在能用时出现;发布前检查不再因为存在冲突就把发布按钮藏起来,而是列出受影响的页面并提供「覆盖这 N 个页面」开关;「遇到冲突时停下来」关闭后会直接覆盖,不再逐次确认。
另外修复:未替换的图片/附件占位符不会再被写进文档;发布完成后会一并报告卡片位置提示。
0.1.7
修复子页面写入。smartcanvas.edit 没有页面参数,写入位置只能由锚点 Block ID 决定:子页面为空或只含子 Page 时,旧代码退化成无锚点追加,内容会静默落到文档根页面,子页面保持空白。现在改用子页面内部的普通块作为锚点,没有锚点的子页面会被跳过并提示先输入占位字符。
同时修复:$$ 块级公式转为 MathBlock(保留 \text、\Omega 等转义,不再混入随机 id,也不改写代码块内的示例);过滤会被渲染成占位标题的空标题;未配对的 $$ 给出提示;更新转换器指纹,确保此前发布过的页面不会被误判为未变化。
0.1.6
修复页面为空或仅含子 Page 时错误使用 Page 块作为正文插入锚点的问题;改为腾讯支持的无锚点追加,并更新转换器指纹。
0.1.5
修复含 LaTeX 花括号的 Markdown 数学公式被误判为 MDX 表达式的问题;普通正文花括号会安全转义。