Remove TODO of resolved issue

This commit is contained in:
Kalle (Sendou)
2021-05-27 16:29:55 +03:00
parent 802a7f04ee
commit 9b675134e8

View File

@@ -48,7 +48,11 @@ const Markdown: React.FC<MarkdownProps> = ({
return {
paragraph: (props: any) => {
const { children } = props;
return <Text as="div" mb={2}>{children}</Text>;
return (
<Text as="div" mb={2}>
{children}
</Text>
);
},
emphasis: (props: any) => {
const { children } = props;
@@ -93,7 +97,6 @@ const Markdown: React.FC<MarkdownProps> = ({
text: (props: any) => {
const { children } = props;
// TODO: "react-dom.development.js?61bb:67 Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>."
return (
<Text as="span">
{reactStringReplace(children, /(:\S+:)/g, (match, i) => (