andycmaj / react-chat-renderer

React JSX factory implementation for Slack
15 stars 0 forks source link

add Link component for creating markdown formatted links #37

Closed davemeyer closed 4 years ago

davemeyer commented 4 years ago

currently you would have to do something like

<MarkdownText>
  {`<${'thing.url}|${thing.name}>`}
</MarkdownText>

to create a slack link with alt text

it would be simpler to have a

<MarkdownLink url={thing.url} text={thing.name} />
davemeyer commented 4 years ago

ah, it exists as Link already 🤦