Skip to content

Markion v0.2.7

Choose a tag to compare

@github-actions github-actions released this 02 Sep 08:37
· 42 commits to main since this release

Markion v0.2.7

Markion v0.2.7 reworks the built-in MarkNice publishing workspace to match the MarkNice editor experience, and polishes everyday editor chrome (window title, Preferences layout, Markdown Reference).

Highlights

MarkNice publishing workspace rework

  • The workspace chrome now follows the MarkNice editor skin: dual rounded cards with traffic-light panel headers, an indigo accent palette, SVG formatting and preview-mode icons, grouped font-size and paragraph-spacing steppers, and a 375px phone frame with notch for mobile preview.
  • New session-local Word (.docx) import that runs entirely inside the browser tab. Importing replaces only the workspace textarea and preview; it never writes back to the Markion document, and the workspace tells you that recovery into Markion requires Copy Markdown or an explicit save of the session Markdown.
  • New Save as PDF that prints a clone of the current themed, sanitized publishing preview — the selected template and typography offsets are preserved. This uses the browser print dialog and is distinct from Markion's native Export → PDF.
  • Export actions are relabeled to match MarkNice wording: Save as HTML and Save as Word. The browser-only JSZip runtime is vendored with provenance, digests, and licenses, so builds, tests, and packaging still require neither Node.js nor a MarkNice checkout; the installers grow slightly in size.

Window title and status bar

  • The native window title now shows the active file name after the brand (for example Markion - notes.md), including the * unsaved-changes marker.
  • The status bar no longer repeats the brand, file name, and dirty marker, leaving its left region for save state, operation feedback, and document context (counts, caret, Git branch).

Preferences: Appearance tab

  • The Preferences Theme tab is renamed Appearance in every supported interface language and now hosts document typography alongside the theme swatches: source and reading font sizes, paragraph spacing, and the source, rendered, and code font families.
  • General keeps language, display/workspace toggles, and Auto-save. Tab order stays General, Appearance, Shortcuts, Export, and documentation now points to Preferences → Appearance.

Markdown Reference

  • A Kenhuang Markdown tutorial link now sits at the top of the Markdown Reference overlay, always visible without scrolling. It opens the Chinese tutorial for Simplified/Traditional Chinese interface languages and the English tutorial otherwise, in your system default browser.

Compatibility

  • No migration is required: Markdown files, preferences (config.toml), session/recent-file data, and workspace data are all read unchanged.
  • The workspace bundle now ships the vendored JSZip and Word-import runtime, so installer size increases modestly.
  • Windows and macOS installers remain unsigned: SmartScreen or Gatekeeper bypass steps are still normally required. The Windows one-click updater remains authenticated by its Minisign signature.

Downloads

  • Windows x64: NSIS installer (markion_0.2.7_x64-setup.exe).
  • macOS Apple Silicon: DMG (Markion_0.2.7_aarch64.dmg).
  • Linux x86_64: DEB (markion_0.2.7_amd64.deb) and AppImage (markion_0.2.7_x86_64.AppImage).

Verification

  • Local: cargo test --workspace passed on Windows (all suites, 0 failures); the workspace bundle verifier passed (23 files, MarkNice revision c009c1e); the loopback browser self-test reported PASS (15 themes + formatting + exports + skin + Word import + themed print-to-PDF).
  • CI: Windows, macOS, and Linux native build/package jobs, Windows updater signing, Release publication, and the Aliyun OSS mirror all succeeded for the v0.2.7 tag workflow.

Full comparison: v0.2.6...v0.2.7


Markion v0.2.7(中文说明)

Markion v0.2.7 将内置的 MarkNice 发布工作区重构为与 MarkNice 编辑器一致的体验,并打磨了日常编辑器外观(窗口标题、偏好设置布局、Markdown 参考)。

主要更新

MarkNice 发布工作区重构

  • 工作区外观改为 MarkNice 编辑器皮肤:双圆角卡片与红绿灯面板标题、靛蓝主色调、SVG 格式化与预览模式图标、成组的字号/段距步进器,以及带刘海的 375px 手机框预览。
  • 新增会话本地 Word(.docx)导入,完全在浏览器标签页内运行。导入只替换工作区的输入区与预览,绝不回写 Markion 文档;工作区会提示通过「复制 Markdown」或显式保存会话 Markdown 才能找回内容。
  • 新增存为 PDF:打印当前带主题、已净化的发布预览的克隆——所选模板与排版偏移都会保留。它使用浏览器打印对话框,与 Markion 原生「导出 → PDF」是两条不同路径。
  • 导出操作按 MarkNice 措辞改名:存为 HTML、存为 Word。浏览器专用的 JSZip 运行时以来源、摘要与许可证一并内置,构建、测试与打包依然不需要 Node.js 或 MarkNice 检出;安装包体积略有增加。

窗口标题与状态栏

  • 原生窗口标题现在在品牌名后显示当前文件名(例如 Markion - notes.md),并包含 * 未保存标记。
  • 状态栏不再重复品牌名、文件名与未保存标记,左侧区域留给保存状态、操作反馈与文档上下文(统计、光标、Git 分支)。

偏好设置:外观标签页

  • 偏好设置的主题标签页在所有界面语言中更名为外观,并在主题色板之外集中文档排版设置:源码与阅读字号、段距,以及源码、渲染、代码三种字体。
  • 「通用」保留语言、显示/工作区开关与自动保存。标签页顺序仍为 通用、外观、快捷键、导出,相关文档已改指向 偏好设置 → 外观。

Markdown 参考

  • Markdown 参考叠加层顶部新增 Kenhuang Markdown 教程链接,无需滚动即可见。简体/繁体中文界面打开中文教程,其他语言打开英文教程,使用系统默认浏览器。

兼容性

  • 无需迁移:Markdown 文件、偏好设置(config.toml)、会话/最近文件数据与工作区数据均按原样读取。
  • 工作区资源包新增内置的 JSZip 与 Word 导入运行时,安装包体积小幅增加。
  • Windows 与 macOS 安装包仍未签名,通常需要手动绕过 SmartScreen 或 Gatekeeper;Windows 一键更新仍由 Minisign 签名认证。

下载

  • Windows x64:NSIS 安装程序(markion_0.2.7_x64-setup.exe)。
  • macOS Apple Silicon:DMG(Markion_0.2.7_aarch64.dmg)。
  • Linux x86_64:DEB(markion_0.2.7_amd64.deb)与 AppImage(markion_0.2.7_x86_64.AppImage)。

验证

  • 本地:Windows 上 cargo test --workspace 全部通过(0 失败);工作区资源包校验器通过(23 个文件,MarkNice 版本 c009c1e);loopback 浏览器自测报告 PASS(15 个主题 + 格式化 + 导出 + 皮肤 + Word 导入 + 主题化打印 PDF)。
  • CI:v0.2.7 tag 工作流的 Windows、macOS、Linux 原生构建/打包、Windows 更新器签名、Release 发布与阿里云 OSS 镜像全部成功。

完整变更对比: v0.2.6...v0.2.7