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:
André Fincato 2022-04-18 15:44:37 +02:00
parent db6130146b
commit 5634e08da5
2 changed files with 1 additions and 2 deletions

View File

@ -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} />;

View File

@ -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})