obsidian-spaced-repetition icon indicating copy to clipboard operation
obsidian-spaced-repetition copied to clipboard

[BUG] Cloze card are not working

Open stackingflow opened this issue 2 years ago • 2 comments

Describe the bug Cloze cards are not working

To Reproduce Steps to reproduce the behavior:

  1. Create a card
  2. Use ==highlights== or bolded text to create a cloze deletion

Expected behavior Cloze deletion card

Screenshots If applicable, add screenshots to help explain the bug. This could be the logs in the developer console (CTRL + SHIFT + i). Screenshot 2022-03-15 at 5 06 17 PM Screenshot 2022-03-15 at 5 10 00 PM

Versions (please complete the following information):

  • OS: Latest MacOS
  • Obsidian version: 0.13.33
  • Plugin version: Latest
  • If on desktop, Installer version: [run this.navigator.appVersion on the developer console, e.g. 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/0.12.3 Chrome/89.0.4389.128 Electron/12.0.6 Safari/537.36"]

Additional context Add any other context about the problem here (e.g. the markdown producing the error).

stackingflow avatar Mar 15 '22 11:03 stackingflow

Not sure if this works with every theme, but I fixed this by saving the following as vault/.obsidian/snippets/Spaced Repetition.css and enabling it under Settings > Appearance:

#sr-flashcard-view mark {
  background-color: var(--text-normal);
  color: var(--text-normal);
}

#sr-flashcard-view mark:hover {
  background-color: var(--background-secondary-alt);
  color: var(--text-on-selection);
}

harmtemolder avatar Mar 16 '22 11:03 harmtemolder

@insanitywanted Can you post here the text that generates the card in the image? It looks to me like you are using cloze inside a basic card. I think this is not possible

MotaOcimar avatar Apr 16 '22 16:04 MotaOcimar