Merge pull request #14658 from overleaf/ae-pasted-font-weight

[visual] Use font-weight >= 700 as bold indicator

GitOrigin-RevId: 33307a3139b596868c3460c070f51adc8617cb3a
This commit is contained in:
Mathias Jakobsen 2023-09-06 15:06:12 +01:00 committed by Copybot
parent 4a157e7086
commit 2dec2a0296

View file

@ -443,7 +443,7 @@ const selectors = [
createSelector({
selector: '*',
match: element =>
parseInt(element.style.fontWeight) > 400 && hasContent(element),
parseInt(element.style.fontWeight) >= 700 && hasContent(element),
start: () => '\\textbf{',
end: () => '}',
inside: true,