Skip to main content

Module markdown

Module markdown 

Source

Functions§

line_hanging_indent
Hanging indent (display cells) for hard-wrapping line: the column where the line’s content begins, so a wrapped list item’s continuation lines align under its text (after the marker) instead of snapping back to the flat message gutter. Counts leading whitespace plus a leading list marker; returns 0 for ordinary paragraphs and headings.
parse_markdown
Parse markdown and convert to theme-styled ratatui Lines.