Sigil

Markdown

Rendered markdown.

Each link is exposed as a Link node with its URL and on-screen area, and a click on it reaches the nearest link handler.

GUITUIRuns in the browsermarkdown

Preview

Markdown, Default, light themeMarkdown, Default, dark theme

Usage example

fn markdown_demo() -> NodeBuilder {    markdown(signal(String::from(        "# Heading\n\nBody with **bold** and `code`.\n\n- one\n- two",    )))}
fn markdown_demo() -> NodeBuilder {  markdown(signal(String::from(    "# Heading\n\nBody with **bold** and `code`.\n\n- one\n- two",  )))}

States

All 2 captured states, each drawn by the window host and by the terminal host.

Default

  • Markdown, Default, light themeMarkdown, Default, dark theme
    Default

Image

  • Markdown, Image: Default, light themeMarkdown, Image: Default, dark theme
    Default

API

NameSignaturePurpose
markdownfn markdown(source: Signal<String>) -> NodeBuilderRendered markdown. Each link is exposed as a Link node with its URL and on-screen area, and a click on it reaches the nearest link handler.