-
Notifications
You must be signed in to change notification settings - Fork 32
Clozify Regexps Feature #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Added function org-anki--links-to-cloze and corresponding controlling variable org-anki-clozify-links.
Edited org-anki--is-cloze and org-anki--org-to-html to change their behavior if org-anki-clozify-links is non-nil.
|
I'm thinking this were even more flexible if the |
Replaced single function call as well. Maybe this could be inlined?
|
I've implemented your ideas as the customization option |
Re: #80
This adds the ability to turn org-links into cloze fields during the sync process. Links to the same address share the same cloze field number, with the reasoning that links to the same place would be spoilers for each other. This is more true to the "why" section of the README, as it makes files more usable as normal org-mode files as well as Anki notes.
Possible ways to extend this functionality include exposing a hook for string-filtering functions (including some shared index of cloze field numbers per each sync process?) or adding options to filter other features, such as /emphasized/ or underlined text. The conversion of subheadings into cloze fields is also an option.