From 45207288a155013d768a6cf2a04bbe3e355da00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Fri, 5 Sep 2025 11:47:39 +0200 Subject: [PATCH] Support bold in headings (#3609) --- .changeset/funny-eagles-teach.md | 5 +++++ packages/gitbook/src/components/DocumentView/Text.tsx | 6 +++--- packages/gitbook/src/fonts/default.ts | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/funny-eagles-teach.md diff --git a/.changeset/funny-eagles-teach.md b/.changeset/funny-eagles-teach.md new file mode 100644 index 000000000..3bb1c9364 --- /dev/null +++ b/.changeset/funny-eagles-teach.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Support bold in headings diff --git a/packages/gitbook/src/components/DocumentView/Text.tsx b/packages/gitbook/src/components/DocumentView/Text.tsx index b245f3b44..6d7acb217 100644 --- a/packages/gitbook/src/components/DocumentView/Text.tsx +++ b/packages/gitbook/src/components/DocumentView/Text.tsx @@ -59,15 +59,15 @@ interface MarkedLeafProps { } function Bold(props: MarkedLeafProps) { - return {props.children}; + return {props.children}; } function Italic(props: MarkedLeafProps) { - return {props.children}; + return {props.children}; } function Strikethrough(props: MarkedLeafProps) { - return {props.children}; + return {props.children}; } function Keyboard(props: MarkedLeafProps) { diff --git a/packages/gitbook/src/fonts/default.ts b/packages/gitbook/src/fonts/default.ts index 4e327c4b5..11cd4b259 100644 --- a/packages/gitbook/src/fonts/default.ts +++ b/packages/gitbook/src/fonts/default.ts @@ -121,7 +121,7 @@ const raleway = Raleway({ }); const roboto = Roboto({ - weight: ['400', '500', '700'], + weight: ['400', '500', '600', '700'], variable: '--font-content', preload: false, display: 'swap',