Release 1.0.1
v1.0.1
🐛 Bug 修复
- 修复设置页分页功能在 Obsidian 1.13.0+ 下不显示的问题
- 移除了与自定义 Tab 分页冲突的声明式设置 API(
getSettingDefinitions()),恢复display()作为主渲染方法,确保 General / 预设管理 / 导入导出 三个分页正常显示
- 移除了与自定义 Tab 分页冲突的声明式设置 API(
🔒 安全修复
- 替换 innerHTML 为安全的 DOM API
- 设置页使用说明列表中的
innerHTML改用createEl('strong')+appendText()+createEl('code')组合构建 - 正则语法表中的
innerHTML改用createEl('code', { text })构建 - i18n 翻译键相应拆分为
.label/.desc/.code/.suffix子键
- 设置页使用说明列表中的
🎨 样式优化
- 移除 CSS 中的
!important.sr-guide-subtitle改用.sr-guide p.sr-guide-subtitle提升选择器特异性.sr-hidden/.sr-scroll-locked改用双重类名选择器提升特异性
🛠️ 代码质量
- 修复 TypeScript 类型安全问题
- 消除不必要的类型断言,改用类型守卫模式
- 修复 Promise 误用(async void 回调改为 fire-and-forget 模式)
- 消除
no-unsafe-*相关警告
🐛 Bug Fixes
- Fixed settings page tabs not displaying on Obsidian 1.13.0+
- Removed the declarative settings API (
getSettingDefinitions()) which conflicted with custom tab navigation, restoreddisplay()as the primary render method to ensure General / Presets / Import-Export tabs display correctly
- Removed the declarative settings API (
🔒 Security Fixes
- Replaced innerHTML with safe DOM API
- Guide list items: replaced
innerHTMLwithcreateEl('strong')+appendText()+createEl('code')combination - Regex syntax table: replaced
innerHTMLwithcreateEl('code', { text }) - Split i18n translation keys into
.label/.desc/.code/.suffixsub-keys accordingly
- Guide list items: replaced
🎨 Style Improvements
- Removed
!importantfrom CSS.sr-guide-subtitle: switched to.sr-guide p.sr-guide-subtitlefor higher selector specificity.sr-hidden/.sr-scroll-locked: switched to double-class selectors for higher specificity
🛠️ Code Quality
- Fixed TypeScript type safety issues
- Eliminated unnecessary type assertions, replaced with type guard patterns
- Fixed misused Promises (async void callbacks converted to fire-and-forget pattern)
- Resolved
no-unsafe-*related warnings
Full Changelog: v1.0.0...v1.0.1