Closed ogallagher closed 9 months ago
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.
However, I can use the {{Tags}}
variable to render the tags. The tags are rendered as a single plain string, tags delimited by spaces. This should work for me as long as the tags are placed in an identified container, and any quizgen tags never contain spaces.
Tags 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. Below is a list of supported render control tags:
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