Docs

Markdown

Markdown allows you to render Markdown content in your application with support for basic formatting, lists, links, and more.

The Markdown component renders content written in the Markdown syntax as HTML. It supports basic text formatting, lists, links, and more. All content provided to the component is internally sanitized to prevent potentially dangerous HTML from being rendered.

For more information about common Markdown syntax features, see the Markdown Guide.

Source code
MarkdownBasic.java
markdown-basic.tsx
markdown-basic.ts

Line Breaks

By default, the component follows the original Markdown specification: a single line break within a paragraph is collapsed into a space, and a blank line is needed to start a new paragraph. Enabling the line breaks option renders single line breaks (also called soft breaks) as actual line breaks, the way chat and message-style Markdown behaves typically. Blank lines still start a new paragraph.

Source code
MarkdownLineBreaks.java
markdown-line-breaks.tsx
markdown-line-breaks.ts

77B51D28-FE42-4829-A315-D0F3C8A55BED

Updated