Skip to main content

Markdown

The Markdown widget provides a way to display formatted text content using Markdown syntax, allowing for rich text presentation without complex HTML.

Properties

PropertyTypeDefaultDescription
bodystring""Markdown content to be rendered

Examples

Basic Markdown

package main

import (
"github.com/trysourcetool/sourcetool-go"
"github.com/trysourcetool/sourcetool-go/markdown"
)

func main() {
func page(ui sourcetool.UIBuilder) error {
// Create a basic markdown widget
ui.Markdown(`# Welcome to Our Application
## Getting Started

This application helps you manage your tasks efficiently.

### Key Features

- **Task Management**: Create, edit, and organize tasks
- **Reminders**: Set reminders for important deadlines
- **Collaboration**: Share tasks with team members

[Learn more about our features](https://example.com/features)`)
}
}
  • TextArea - For multi-line text input
  • Form - Container for organizing form elements