mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-20 06:58:16 +03:00
groups: set font-size=1 to list block
this set the correct size to a list item which contains for eg only a link child (as link child has the prop fontSize="inherit").
This commit is contained in:
parent
db6130146b
commit
5634e08da5
@ -446,7 +446,7 @@ const renderers = {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
list: ({ depth, ordered, children }) => {
|
list: ({ depth, ordered, children }) => {
|
||||||
return ordered ? <Ol>{children}</Ol> : <Ul>{children}</Ul>;
|
return ordered ? <Ol fontSize="1">{children}</Ol> : <Ul fontSize="1">{children}</Ul>;
|
||||||
},
|
},
|
||||||
'graph-mention': (obj) => {
|
'graph-mention': (obj) => {
|
||||||
return <Mention ship={obj.ship} emphasis={obj.emphasis} />;
|
return <Mention ship={obj.ship} emphasis={obj.emphasis} />;
|
||||||
|
@ -120,7 +120,6 @@ function blockquote(eat, value, silent) {
|
|||||||
|
|
||||||
exit = self.enterBlock()
|
exit = self.enterBlock()
|
||||||
contents = self.tokenizeBlock(contents.join(lineFeed), now)
|
contents = self.tokenizeBlock(contents.join(lineFeed), now)
|
||||||
console.log(values);
|
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
const added = add({type: 'blockquote', children: contents})
|
const added = add({type: 'blockquote', children: contents})
|
||||||
|
Loading…
Reference in New Issue
Block a user