Support bold in headings (#3609)

This commit is contained in:
Greg Bergé
2025-09-05 11:47:39 +02:00
committed by GitHub
parent 177afa5828
commit 45207288a1
3 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Support bold in headings
@@ -59,15 +59,15 @@ interface MarkedLeafProps<Mark extends DocumentTextMark> {
}
function Bold(props: MarkedLeafProps<DocumentMarkBold>) {
return <strong className={tcls('font-bold')}>{props.children}</strong>;
return <strong className="font-bold">{props.children}</strong>;
}
function Italic(props: MarkedLeafProps<DocumentMarkItalic>) {
return <i className={tcls('font-italic')}>{props.children}</i>;
return <i className="font-italic">{props.children}</i>;
}
function Strikethrough(props: MarkedLeafProps<DocumentMarkStrikethrough>) {
return <s className={tcls('line-through')}>{props.children}</s>;
return <s className="line-through">{props.children}</s>;
}
function Keyboard(props: MarkedLeafProps<DocumentMarkKeyboard>) {
+1 -1
View File
@@ -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',