GraphContent: allow titled links in textrenderer
Fixes urbit/landscape#752
@@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import ReactMarkdown from 'react-markdown';
import RemarkDisableTokenizers from 'remark-disable-tokenizers';
import urbitOb from 'urbit-ob';
-import { Text } from '@tlon/indigo-react';
+import { Text, Anchor } from '@tlon/indigo-react';
import { GroupLink } from '~/views/components/GroupLink';
import { Row } from '@tlon/indigo-react';
@@ -22,7 +22,6 @@ const DISABLED_INLINE_TOKENS = [
'autoLink',
'url',
'email',
- 'link',
'reference'
];
@@ -75,6 +74,9 @@ const renderers = {
{value}
</Text>
);
+ },
+ link: (props) => {
+ return <Anchor src={props.href} borderBottom="1" color="black">{props.children}</Anchor>
}
};
