mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Update bold check to font weight 700
https://github.com/ankitects/anki/issues/2453
This commit is contained in:
parent
f504cc45f1
commit
754fcc2b3a
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
}
|
}
|
||||||
|
|
||||||
const fontWeight = element.style.fontWeight;
|
const fontWeight = element.style.fontWeight;
|
||||||
if (fontWeight === "bold" || Number(fontWeight) >= 400) {
|
if (fontWeight === "bold" || Number(fontWeight) >= 700) {
|
||||||
return match.clear((): void => {
|
return match.clear((): void => {
|
||||||
if (
|
if (
|
||||||
removeStyleProperties(element, "font-weight") &&
|
removeStyleProperties(element, "font-weight") &&
|
||||||
|
|
Loading…
Reference in a new issue