Skip to content

CommentMarkdown

Lightweight, dependency-free markdown for comment bodies: bold, italics, inline code, safe links, bullet lists, and fenced code blocks. For richer rendering pass a renderBody to the card instead.

Source

import { CommentMarkdown } from "@flanksource/clicky-ui/comments";

No dedicated Storybook demo is available for this component yet.

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
className string — Classes applied to the rendered wrapper.
text* string — Raw comment body in lightweight markdown.
vocabulary CommentVocabulary — —
vocabularyRefs readonly CommentVocabularyItem[] — —