Skip to content

Markdown

Renders Markdown-formatted text as HTML. Useful for rich content, documentation sections, and formatted messages.

Markdown.builder()
.markdown("# Hello\n\nThis is **bold** and _italic_ text.")
.build()
PropertyTypeDefaultDescription
markdownStringMarkdown source text
styleString""Inline CSS
cssClassesString""CSS class names
// Simple paragraph
Markdown.builder()
.markdown("This is a **simple** example.")
.build()
// Multi-line with headings and lists
Markdown.builder()
.markdown("""
## Getting started
1. Install the library
2. Configure your backend
3. Define your first `@UI` class
> **Tip:** you can mix declarative and fluent components freely.
""")
.build()
// From a resource file
String content = new String(
getClass().getResourceAsStream("/docs/readme.md").readAllBytes()
);
Markdown.builder().markdown(content).build()

When building help panels, release notes, or any user-facing rich content, Markdown is more maintainable than constructing nested Text components by hand.