Add default styles to markdown (#1284)
This commit is contained in:
parent
903c81dd21
commit
72fe55ae72
@ -63,15 +63,15 @@ class Markdown(Component):
|
|||||||
._render()
|
._render()
|
||||||
.add_props(
|
.add_props(
|
||||||
components={
|
components={
|
||||||
"h1": "{({node, ...props}) => <Heading size='2xl' {...props} />}",
|
"h1": "{({node, ...props}) => <Heading size='2xl' paddingY='0.5em' {...props} />}",
|
||||||
"h2": "{({node, ...props}) => <Heading size='xl' {...props} />}",
|
"h2": "{({node, ...props}) => <Heading size='xl' paddingY='0.5em' {...props} />}",
|
||||||
"h3": "{({node, ...props}) => <Heading size='lg' {...props} />}",
|
"h3": "{({node, ...props}) => <Heading size='lg' paddingY='0.5em' {...props} />}",
|
||||||
"h4": "{({node, ...props}) => <Heading size='sm' {...props} />}",
|
"h4": "{({node, ...props}) => <Heading size='sm' paddingY='0.5em' {...props} />}",
|
||||||
"h5": "{({node, ...props}) => <Heading size='xs' {...props} />}",
|
"h5": "{({node, ...props}) => <Heading size='xs' paddingY='0.5em' {...props} />}",
|
||||||
"ul": "{UnorderedList}",
|
"ul": "{UnorderedList}",
|
||||||
"ol": "{OrderedList}",
|
"ol": "{OrderedList}",
|
||||||
"li": "{ListItem}",
|
"li": "{ListItem}",
|
||||||
"p": "{Text}",
|
"p": "{({node, ...props}) => <Text paddingY='0.5em' {...props} />}",
|
||||||
"a": "{Link}",
|
"a": "{Link}",
|
||||||
"code": """{({node, inline, className, children, ...props}) =>
|
"code": """{({node, inline, className, children, ...props}) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user