- Implementation
- Markdown Props
Common Examples
To use theMarkdown, import it from @servicetitan/anvil2-ai-kit and pass a required markdown string through source. The kit forbids children.Markdown enables GitHub Flavored Markdown, including tables, strikethrough, task lists, and autolinks.Headings
Headings render throughText so semantic levels and the Carto headline scale remain aligned.Inline formatting
Markdown supports emphasis, strong text, strikethrough, inline code, and links.Lists and task lists
Ordered and unordered lists support nesting. GitHub task-list checkboxes are read-only.Code
Inline code and fenced code blocks receive separate Carto treatments.Tables
GitHub Flavored Markdown tables render through the kit’s responsive table implementation.Links
Relative and same-origin links stay in the current tab. External HTTP(S) links open in a new tab withrel="noopener noreferrer".React Accessibility
- Markdown headings preserve their source heading levels.
- Images use their markdown alt text. Images without alt text render with an empty
altattribute. - Task-list checkboxes are disabled because rendered markdown is read-only.
- Tables preserve header and data-cell semantics.