ObsidianToAnki / Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki
GNU General Public License v3.0
1.41k stars 125 forks source link

Convert Obsidian's Nested Tags to Anki's Hierarchical Tags #566

Open panAtGitHub opened 3 months ago

panAtGitHub commented 3 months ago

Changes

  1. Expanded tag recognition range, especially for Obsidian's nested tag symbol '/'.(contribution by @envico801 by #551 )
  2. Converted '/' to Anki's nested tag symbol '::'.

Reference

This pull request addresses the discussion in Issue #551 where we talked about enhancing the recognition of nested tags in Obsidian and ensuring they translate correctly into Anki's hierarchical tag structure.

Following the feedback and suggestions in the discussion, these changes have been implemented to improve the plugin's functionality.

Effect

The effect is as follows,The image above shows the multi-level tag style in Obsidian, and the image below shows the multi-level tag style in Anki:

image image
daetanbhuck commented 1 month ago

@ShootingKing-AM Could this PR be merged? Hotly requested by lil ol' me :)

panAtGitHub commented 1 month ago

@ShootingKing-AM Could this PR be merged? Hotly requested by lil ol' me :)

https://github.com/ObsidianToAnki/Obsidian_to_Anki/issues/551 你可以先对插件的源码进行修改,修改的步骤在这个对话里有讲的,翻到最后 You can first modify the source code of the plugin. The steps for modification are mentioned in this conversation; scroll to the end.