Jwrede / Anki-KaTeX-Markdown

Creates a new Basic and a new Cloze Note Type that support Markdown and KaTeX
74 stars 5 forks source link

Nightmode breaks background color of syntax highlight blocks #29

Open donoghue opened 2 years ago

donoghue commented 2 years ago

When using Anki in Night Mode on macOS, the background color of syntax highlighted blocks is a very light grey while the text remains white. This is virtually unreadable.

image

gjatkinson commented 1 year ago

changing the background color does not seem to work. If I remove the background-color: #eee; line, and save, it works for that session. Close and reopen, and it has restored the old deleted line. I must be missing something.

gjatkinson commented 1 year ago

@danielzeljko Thanks, that does work. (As does disabling the add-in after first using it.) I've never built an add-in so I did not think about looking into the code. Thanks!

edap commented 1 year ago

Changing line 613 from :

pre code {
  background-color: #eee;
  border: 1px solid #999;
  display: block;
  padding: 20px;
  overflow: auto;
}

to, for example, red

pre code {
  background-color: #FF0000; 
  border: 1px solid #999;
  display: block;
  padding: 20px;
  overflow: auto;
}

does not change the color of the BG.

alexthillen commented 1 year ago

https://github.com/alexthillen/Anki-KaTeX-Markdown/releases/tag/release%2F7 should fix it. --> New card type : KaTex and Markdown Cloze (color) will be created, not affecting old cards.