Skip to content

Releases: PandaNocturne/obsidian-deck-to-anki

1.0.6

Choose a tag to compare

@PandaNocturne PandaNocturne released this 04 Oct 12:21

English

⚙️ Improvements

  • Add getSettingDefinitions() so Obsidian 1.13+ can index plugin settings for global search, while keeping display() for older app versions
  • Share one tabbed settings mount between the declarative and legacy paths, and refresh via update() when available

🌐 Localization

  • Make README.md English-primary and move the Chinese documentation to README.zh.md

📝 Documentation

  • Expand the English README with full feature, settings, and install coverage for the community plugin directory

中文

⚙️ 改进/优化

  • 新增 getSettingDefinitions(),使 Obsidian 1.13+ 可将插件设置纳入全局搜索;同时保留 display() 以兼容旧版本
  • 声明式与旧版设置页共用同一套选项卡挂载逻辑,并在可用时通过 update() 刷新

🌐 翻译/本地化

  • 将 README.md 改为英文主文档,中文说明迁移至 README.zh.md

📝 文档/其他

  • 扩充英文 README 的功能、设置与安装说明,便于社区插件目录展示

1.0.5

Choose a tag to compare

@PandaNocturne PandaNocturne released this 04 Oct 12:02

English

⚙️ Improvements

  • Address Obsidian community plugin review blockers: replace unsafe innerHTML assignments with DOMParser-based helpers
  • Raise minAppVersion to 1.7.2 so declared support matches APIs in use (revealLeaf, getAllFolders, setDisabled, etc.)
  • Use Setting.setHeading() for settings sections and setCssStyles for sync-panel progress width
  • Prefer Obsidian DOM helpers (createDiv / createEl) and safer type narrowing; avoid globalThis for Prism setup
  • Remove !important from loading-button pseudo-element CSS by raising selector specificity

📝 Documentation

  • Add an English overview section to the README for the community plugin directory

中文

⚙️ 改进/优化

  • 修复社区插件审核阻断项:用基于 DOMParser 的辅助函数替代不安全的 innerHTML 赋值
  • 将 minAppVersion 提升至 1.7.2,与实际使用的 API(revealLeaf、getAllFolders、setDisabled 等)一致
  • 设置页分区改用 Setting.setHeading(),同步面板进度条宽度改用 setCssStyles
  • 更多使用 Obsidian DOM 辅助方法与更安全的类型收窄;Prism 初始化改为挂到 window
  • 通过提高选择器优先级去掉加载按钮伪元素样式中的 !important

📝 文档/其他

  • README 增加英文 Overview,满足社区目录对英文说明的要求

1.0.4

Choose a tag to compare

@PandaNocturne PandaNocturne released this 14 Sep 13:55

English

✨ Features

  • Prism syntax highlighting for fenced code blocks when syncing to Anki (tokenized HTML plus Anki media stylesheet)
  • New Title parse mode: note filename as card front, body (after YAML) as card back; stores Anki id in YAML deckID

⚙️ Improvements

  • Upload _dta-code-highlight.css to Anki collection.media and link it from card templates so token colors render in Anki
  • Title mode works as a one-file card in the sync panel and as a File-mode child note type

🔧 Dependencies

  • Add prismjs for sync-time code highlighting

📝 Documentation

  • Document Title mode and update parse-mode lists in README and the demo note

中文

✨ 新功能/特性

  • 同步到 Anki 时对围栏代码块做 Prism 语法高亮(写入 token HTML,并配套 Anki 媒体样式表)
  • 新增 Title 解析模式:文件名为卡片正面,去除 YAML 后的正文为反面;Anki ID 写入 YAML deckID

⚙️ 改进/优化

  • 将 _dta-code-highlight.css 上传到 Anki collection.media,并在卡片模板中用 link 引用,使 token 颜色在 Anki 中生效
  • Title 模式作为整文件单卡接入同步面板,也可作为 File 模式的子笔记类型

🔧 依赖更新

  • 新增 prismjs,用于同步时的代码高亮

📝 文档/其他

  • README 与演示笔记补充 Title 模式说明,并更新解析模式列表

1.0.3

Choose a tag to compare

@PandaNocturne PandaNocturne released this 02 Aug 06:40

English

🐛 Fixes

  • Stop treating ob-deck-basic as a flip note type when Anki still has a leftover Card 2; sync/send now removes extra reverse templates for non-reversible models
  • Import no longer marks ob-deck-basic as reversible or pulls Card 2 HTML into flip editors

📝 Documentation

  • Add AnkiConnect CORS configuration example and Anki field screenshot to the README

中文

🐛 修复

  • 修复 ob-deck-basic 因 Anki 残留 Card 2 被当成翻转卡的问题;同步/发送时会移除非翻转模板的多余 Card 2
  • 导入时不再将 ob-deck-basic 标记为翻转,也不再导入 Card 2 翻转 HTML

📝 文档/其他

  • README 补充 AnkiConnect CORS 配置示例与 Anki 字段说明截图

1.0.2

Choose a tag to compare

@PandaNocturne PandaNocturne released this 01 Aug 19:38

English

✨ Features

  • Support custom Front/Back HTML for flip cards (ob-deck-basic++)

⚙️ Improvements

  • Reorder and rename deck YAML settings in the settings panel
  • Deck View merges the card title into the front display

📝 Documentation

  • Rewrite README with feature screenshots and clearer usage guide
  • Add a Head-mode demo deck for walkthroughs

中文

✨ 新功能/特性

  • 支持自定义翻转卡正反面 HTML(ob-deck-basic++)

⚙️ 改进/优化

  • 调整牌组 YAML 设置项顺序与命名
  • Deck View 将标题与正面合并显示

📝 文档/其他

  • 重写 README 并补充功能截图与使用说明
  • 添加 Head 模式功能演示牌组

1.0.1

Choose a tag to compare

@PandaNocturne PandaNocturne released this 01 Aug 10:40

Deck To Anki 1.0.1

Fixes

  • 检测前先重新扫描,避免文件更新后状态过期
  • Head 模式标题只写入 ob-deck-head,不再镜像到 ob-deck-front

Style

  • 默认卡片模板:牌组树置顶,回链移出卡片区

1.0.0

Choose a tag to compare

@PandaNocturne PandaNocturne released this 01 Aug 09:30

Deck To Anki 1.0.0

Initial release.

Assets

  • main.js
  • manifest.json
  • styles.css