Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 2e0b2ef

Browse files
author
Alex Vaghin
committed
parser/gdoc: bold text variation
Most recent Google Docs export bold text font-weight:700 instead of font-weight:bold.
1 parent a82e071 commit 2e0b2ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

claat/parser/gdoc/html.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ func isBold(css cssStyle, hn *html.Node) bool {
5050
}
5151
return hn.DataAtom == atom.Strong ||
5252
hn.DataAtom == atom.B ||
53-
hasClassStyle(css, hn, "font-weight", "bold")
53+
hasClassStyle(css, hn, "font-weight", "bold") ||
54+
hasClassStyle(css, hn, "font-weight", "700")
5455
}
5556

5657
func isItalic(css cssStyle, hn *html.Node) bool {

0 commit comments

Comments
 (0)