Expand description
Markdown rendering utilities for terminal output with syntax highlighting support.
Structs§
- Highlighted
Segment - A highlighted line segment with style and text.
- Markdown
Line - A rendered line composed of styled segments.
- Markdown
Segment - A styled text segment.
- Render
Markdown Options
Functions§
- highlight_
code_ to_ ansi - Highlight a code string and return ANSI-formatted strings per line.
- highlight_
code_ to_ segments - Highlight a code string and return styled segments per line.
- highlight_
line_ for_ diff - Highlight a single line of code for diff preview. Returns a vector of (style, text) segments, or None if highlighting fails.
- render_
markdown - Convenience helper that renders markdown using the active theme without emitting output.
- render_
markdown_ to_ lines - Render markdown text to styled lines that can be written to the terminal renderer.
- render_
markdown_ to_ lines_ with_ options