Update bold check to font weight 700

https://github.com/ankitects/anki/issues/2453
This commit is contained in:
Damien Elmes 2023-07-17 14:20:31 +10:00
parent f504cc45f1
commit 754fcc2b3a

View file

@ -25,7 +25,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
const fontWeight = element.style.fontWeight;
if (fontWeight === "bold" || Number(fontWeight) >= 400) {
if (fontWeight === "bold" || Number(fontWeight) >= 700) {
return match.clear((): void => {
if (
removeStyleProperties(element, "font-weight") &&