pranavdeshai / anki-prettify

Collection of customizable Anki flashcard templates with modern and clean themes.
MIT License
345 stars 16 forks source link

Bold italic color doesn't work properly when the text is wrapped by <strong> and <em> instead of <b> and <i> #13

Open juliusliu02 opened 1 year ago

juliusliu02 commented 1 year ago

The styling template in Nord doesn't color correctly with characters wrapped by <em> and <strong>, since the code only includes <b>, <i> as written below.

b > i,
i > b {
  color: var(--bold-italic-fg);
}

To make it compatible with text that utilizes <em> and <strong>, I've changed it to this, and it works fine now:

b > i,
i > b,
strong > i,
i > strong,
em > b,
b > em,
strong > em,
em > strong {
  color: var(--bold-italic-fg);
}

It'd be fantastic if it could be fixed in the release.