DOCS
v0.4

Components / Markdown

Markdown

Lightweight markdown renderer with sanitized HTML output. Headings, bold, italic, code blocks, inline code, links, lists, blockquotes, tables, horizontal rules. No external dependency.

typography v0.1.0

Playground

Examples

Rich content
<cg-markdown></cg-markdown>
Table + HR
<cg-markdown></cg-markdown>

Import

import { CgMarkdown } from '@cognivo/components';
// Or tree-shake: import '@cognivo/components/cg-markdown';

Per-component imports ship only that component (~8 kB gzip).

API Reference

PropTypeDefaultDescription
text string Markdown text to render