Skip to content

Render markdown in tooltip with post-utils, instead of ReactMarkdown #327

@mickmister

Description

@mickmister

The webapp has a robust markdown system that I think we should utilize instead of using the ReactMarkdown library:

<ReactMarkdown
source={data.body}
disallowedTypes={['heading']}
linkTarget='_blank'
/>

The todo plugin uses the webapp's exposed post-utils to render its markdown. I think it makes sense to do the same here. This would allow for feature-rich things like at-mentions to be rendered as well, assuming the backend does the same sort of translations of GitHub -> Mattermost usernames before the PR description is delivered to the frontend, as it does when it creates posts from a GitHub event.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions