anki-prettify icon indicating copy to clipboard operation
anki-prettify copied to clipboard

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

Open juliusliu02 opened this issue 1 year ago • 0 comments

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.

juliusliu02 avatar Apr 18 '23 13:04 juliusliu02