interface MarkdownProps

Passed to Markdown by any component that shows a user's text.

Properties

children: string
optional
className: string
optional
inline: boolean

Drops the images, for a line-clamped teaser in a card, where an image would break the layout. The full text is one click away.

optional
everyone: boolean

Shows @everyone as a mention, from a chat message's mentionsEveryone. Without it, @everyone is plain text: anyone may type it, and it reaches no one.

Usage

import { type MarkdownProps } from "src/components/editor/Markdown.tsx";