- The first two flash cards don't have context. It won't be shown in anki, because of the JS, which hides an empty context
- The last two flash cards have context. It will be shown a bit separated from the card itself. In my opinion this makes it easier to tell, which part of the question is the context and which is the actual question asked.
- It makes the `contextAware` setting more or less obsolete, as users could just delete the `<div id="context" style="padding:1em;background-color:#444"><small><i>{{Context}}</i></small></div>` line from their templates.
This PR is a proof of concept because:
- I have no idea if there's something I'm missing
- Someone with more experience would have to change the anki card models to reflect these changes and add the `Context` field to it
- I don't know if existing users would have to add the `Context` field manually, as I did or if it is possible to add it "silently"
- (I don't know if silently works because of the needed hard sync in step 2)
Please feel free to build upon this PR and/or use the code and create your own PR to implement this feature
This is a proof of concept for #146 It moves the cards
context
into an additional/distinct flash card anki field.This allows easy and independent styling of flashcards.
To test this, you must:
Context
to it. (this needs a force sync, hence step 2)Obsidian-cloze-source
Flas==card== Test
New flash==card==
Context Headline 1
CTC HDL 2
fl==ash==
test ==cloze==