-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use Anki tags to customize card render #32
Comments
After looking at the anatomy of a rendered card in the web browser version, it does not look like the tags are available in any of the DOM elements by default. |
Render control tagsTags are an organizational concept already present in Anki, and the Quiz card generator (quizgen) includes them in its notes export in order to later quickly isolate notes within Anki that came from quizgen, and among them from what source texts they are. However, in addition to organizational tags, quizgen also uses card render control tags. Render control tags serve as dynamic options to change how a note's cards are rendered. |
If the current note's tags are available within the DOM on render, then I can support variations of
fill-blanks
, as well as other layouts of the same information, without needing to create duplicate notes for associating to different card templates.qg-
except those specified by the user, and those for identifying the source text.Initial render control tags:
show-logging
tag, then render logs can be shown in the card body.show-choices
tag, then the multiple choices for the cloze are not shown.show-source-file
andshow-source-line
tags, that section will be hidden.show-prologue
tag, the preceding sentence will be hidden, and similarly forshow-epilogue
.show-randomized
shuffles the choicesDocument
The text was updated successfully, but these errors were encountered: