Skip to content

Commit 4520728

Browse files
authored
Support bold in headings (#3609)
1 parent 177afa5 commit 4520728

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/funny-eagles-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Support bold in headings

packages/gitbook/src/components/DocumentView/Text.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ interface MarkedLeafProps<Mark extends DocumentTextMark> {
5959
}
6060

6161
function Bold(props: MarkedLeafProps<DocumentMarkBold>) {
62-
return <strong className={tcls('font-bold')}>{props.children}</strong>;
62+
return <strong className="font-bold">{props.children}</strong>;
6363
}
6464

6565
function Italic(props: MarkedLeafProps<DocumentMarkItalic>) {
66-
return <i className={tcls('font-italic')}>{props.children}</i>;
66+
return <i className="font-italic">{props.children}</i>;
6767
}
6868

6969
function Strikethrough(props: MarkedLeafProps<DocumentMarkStrikethrough>) {
70-
return <s className={tcls('line-through')}>{props.children}</s>;
70+
return <s className="line-through">{props.children}</s>;
7171
}
7272

7373
function Keyboard(props: MarkedLeafProps<DocumentMarkKeyboard>) {

packages/gitbook/src/fonts/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const raleway = Raleway({
121121
});
122122

123123
const roboto = Roboto({
124-
weight: ['400', '500', '700'],
124+
weight: ['400', '500', '600', '700'],
125125
variable: '--font-content',
126126
preload: false,
127127
display: 'swap',

0 commit comments

Comments
 (0)