Markion v0.2.9
Markion v0.2.9
This release widens local-image support in the WeChat (MarkNice) publishing preview, adds a full set of code-block display preferences, and brings more direct editing affordances to Visual Edit.
Highlights
WeChat publishing workspace: local images
- Local images resolve wherever you keep them. The MarkNice preview now serves images referenced from the document's own folder, any subfolder below it, and one level up (
../cover.png) — so notes written in Typora/Obsidian-style layouts render correctly instead of showing broken images. - New "Organize Local Images" command. For images still out of scope (e.g.
../../shared/logo.pngor absolute paths), a confirmation prompt lists them and, on confirm, copies each file into the document's<stem>.assets/folder and rewrites the references as one undoable edit. - Fixed Organize Local Images not rewriting references written with Windows backslashes or HTML entity-encoded destinations.
Appearance preferences: code blocks
- New Code blocks section under Preferences → Appearance with a Light / Dark code highlight theme (Dark remains the default, preserving the previous look), applied consistently in Read mode, Split Preview, and the Visual Edit code editor.
- Show line numbers moved from the General tab into this section.
- New Wrap long lines toggle — when off, long code lines scroll horizontally instead of soft-wrapping.
- New independent code font size control (10–32px), with a one-click way to follow the reading font size again. The code font-family setting also moved into this section.
Visual Edit
- Double-click selects a word — works across Latin words, CJK runs, and punctuation runs, maps the selection precisely back to the Markdown source (bold markers and other hidden syntax are preserved when you type over the selection), and selects the full source of rendered atoms such as inline math.
- Standalone images gain the hover
</>source toggle already familiar from math and diagram blocks: the completespan opens in a monospaced editor above the image, and the editor opens automatically if the image fails to load. - Code fence language is now editable in place: hovering a fence (or clicking into it) reveals a language chip; committing rewrites only the language token while preserving the rest of the info string and the code content. Diagram fences expose the same chip in their source editor.
- The Visual Edit image block no longer shows the three-field Alt/Destination/Title table — a single read-only caption (title, otherwise alt text) keeps the surface clean, with full source available on demand via the
</>toggle.
Compatibility
- No migration required: Markdown documents, workspace data, and existing preferences load unchanged. The new code-display preferences use tolerant defaults when absent.
- Platform notes are unchanged: the Windows and macOS installers are not code-signed, so SmartScreen / Gatekeeper bypass steps still apply; the macOS build is Apple Silicon only.
Downloads
- Windows x64: NSIS installer (
markion_0.2.9_x64-setup.exe, signed for the in-app updater — seeupdate.json). - macOS Apple Silicon: DMG (
Markion_0.2.9_aarch64.dmg). - Linux x86_64: DEB (
markion_0.2.9_amd64.deb) and AppImage (markion_0.2.9_x86_64.AppImage).
Verification
- Full local workspace test suite (
cargo test --workspace) passed. - Packaged MarkNice workspace bundle verified locally (
verify-bundle: 23 files). - Windows, macOS, and Linux native CI builds succeeded, each with packaged-workspace verification, and the Windows updater metadata was signed in CI.
Full comparison: v0.2.8...v0.2.9
Markion v0.2.9(中文说明)
本次发布扩展了微信(MarkNice)发布预览对本地图片的支持,新增完整的代码块显示偏好设置,并为可视化编辑模式带来了更多直接编辑能力。
主要更新
微信发布工作区:本地图片
- 本地图片不再受存放位置限制。 MarkNice 预览现在可以解析位于 Markdown 文件同目录、任意子目录以及上一级目录(
../cover.png)中的图片——以 Typora/Obsidian 风格组织的笔记可以正常渲染,不再显示为裂图。 - 新增「整理本地图片」命令。 对于仍超出范围的引用(如
../../shared/logo.png或绝对路径),确认提示会列出这些图片,确认后将每个文件复制到文档的<stem>.assets/目录,并作为一次可撤销的编辑重写引用。 - 修复 了整理本地图片时无法重写使用 Windows 反斜杠或 HTML 实体编码路径的引用的问题。
外观偏好:代码块
- 「偏好设置 → 外观」新增代码块设置区,提供浅色 / 深色代码高亮主题(默认深色,保持原有外观),在阅读模式、分屏预览和可视化编辑的代码编辑器中一致生效。
- 显示行号开关从「通用」页签移入该区。
- 新增长行自动换行开关——关闭后,超长代码行改为横向滚动而非软换行。
- 新增独立的代码字号调节(10–32px),可一键恢复为跟随正文字号。代码字体设置也移入该区。
可视化编辑
- 双击选中单词——支持拉丁单词、连续中文(CJK)片段和标点片段;选区精确映射回 Markdown 源码(在选区上输入时保留加粗等隐藏语法标记),对内联公式等渲染单元则选中其完整源码。
- 独立图片块新增悬停
</>源码开关(与公式、图表块一致):完整的语句在图片上方的等宽编辑器中展开;图片加载失败时会自动展开源码编辑器。 - 代码块语言可就地修改:悬停(或点入)代码块会显示语言标签,提交后仅重写语言标记,保留信息串的其余部分和代码内容。图表演的源码编辑器中也提供同样的标签。
- 可视化编辑中的图片块不再显示 Alt/链接/标题三栏编辑表格——改为单行只读说明文字(优先标题,否则 Alt 文本),需要时可通过
</>开关编辑完整源码。
兼容性
- 无需迁移:Markdown 文档、工作区数据和现有偏好设置均原样加载。新增的代码显示偏好在缺失时使用容错默认值。
- 平台说明不变:Windows 与 macOS 安装包未签名,仍需手动绕过 SmartScreen / Gatekeeper;macOS 版本仅支持 Apple Silicon。
下载
- Windows x64:NSIS 安装程序(
markion_0.2.9_x64-setup.exe,已为应用内更新器签名——见update.json)。 - macOS Apple Silicon:DMG(
Markion_0.2.9_aarch64.dmg)。 - Linux x86_64:DEB(
markion_0.2.9_amd64.deb)与 AppImage(markion_0.2.9_x86_64.AppImage)。
验证
- 本地完整 workspace 测试套件(
cargo test --workspace)全部通过。 - 打包的 MarkNice 工作区资源包已通过本地校验(
verify-bundle:23 个文件)。 - Windows、macOS、Linux 原生 CI 构建全部成功,均包含打包工作区校验;Windows 更新器元数据已在 CI 中完成签名。
完整变更对比: v0.2.8...v0.2.9