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',