From 2dec2a02968bdefef1e88c830db55b32f46b138c Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Wed, 6 Sep 2023 15:06:12 +0100 Subject: [PATCH] Merge pull request #14658 from overleaf/ae-pasted-font-weight [visual] Use font-weight >= 700 as bold indicator GitOrigin-RevId: 33307a3139b596868c3460c070f51adc8617cb3a --- .../js/features/source-editor/extensions/visual/paste-html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/source-editor/extensions/visual/paste-html.ts b/services/web/frontend/js/features/source-editor/extensions/visual/paste-html.ts index 7173cfe6ca..221d60d980 100644 --- a/services/web/frontend/js/features/source-editor/extensions/visual/paste-html.ts +++ b/services/web/frontend/js/features/source-editor/extensions/visual/paste-html.ts @@ -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,