Skip to content

InkSlash 1.3.0 · 墨令

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Oct 05:52

InkSlash 1.3.0 · 墨令

选中文字,设置颜色与字号

  • 选中单行普通文字后,自动浮出「文字颜色 / 字号」工具栏。
  • 支持预设颜色、自定义 #RRGGBB 色值、常用字号和 8–72 px 自定义字号,带预览、取消和恢复默认。
  • 也可从编辑器右键菜单和命令面板进入;设置中可关闭自动工具栏。
  • 支持中英文和键盘操作:Tab 聚焦工具栏、左右键切换按钮、Enter 打开、Escape 关闭。
  • 修复实机验收发现的 Tab 被编辑器当作缩进、弹窗初始焦点不对应所选控件的问题。

样式保存为行内 HTML span,阅读视图可显示,源码模式会显示标签。完整重选 InkSlash 样式区域可调整或恢复默认。为保护原文,不处理代码、属性、链接、多行和包含 Markdown 格式标记的选区。原有斜杠菜单、命令、配置及其 Markdown 输出保持兼容。

Text color and font size

  • Select a single line of plain text to show a floating color and size toolbar, with preset/custom colors, 8–72 px sizes, preview, cancel and reset.
  • Access the same controls from the editor context menu or command palette. The automatic toolbar can be disabled in settings.
  • English and Simplified Chinese labels, keyboard navigation and correct initial input focus.
  • Save styles as inline HTML and update InkSlash spans in place. Reject unsupported Markdown contexts and stale edits; keep existing slash commands, settings and output compatible.

Installation / 安装

Requires Obsidian 1.13.7+. Download main.js, manifest.json, and styles.css into .obsidian/plugins/inkslash/, then reload InkSlash. Keep your existing data.json.

最低要求 Obsidian 1.13.7。替换插件目录中的三个同名文件并重新加载,保留原有 data.json,以保留设置、置顶及历史记录。

Validation / 验证

95 automated tests, lint, build and release checks. Live UI verification in an isolated vault on macOS with Obsidian 1.13.7 covered mouse/keyboard selection, toolbar navigation, color and size application, invalid-size rejection, cancellation, single-step undo, reset to the original text, Live Preview and reading-view rendering, English switching, disabling the toolbar while retaining command access, and existing bold insertion. No mobile-device verification was performed.