mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-28 04:58:52 +00:00
Support bold in headings (#3609)
This commit is contained in:
@@ -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>) {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user