Skip to main content

Module markdown

Module markdown 

Source
Expand description

Markdown → ratatui Text rendering using pulldown-cmark.

Renders headings, tables, code blocks, lists, links, blockquotes, and inline formatting (bold, italic, code) as styled ratatui Lines.

Enums§

PreviewBlock
Rendered markdown content: interleaved text blocks and mermaid placeholders.

Functions§

parse_markdown
Parse markdown source and return a list of preview blocks. width is the available terminal columns for text wrapping (0 = no limit).