Open
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.
Owner
|
I'm thinking this were even more flexible if the |
Replaced single function call as well. Maybe this could be inlined?
Author
|
I've implemented your ideas as the customization option |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.