Expand description
Markdown, rendered for a terminal.
Tracker’s descriptions and comments are markdown, and printing them raw
makes a person read the syntax instead of the text. This module renders them
with termimad, under two constraints that are not negotiable:
- Only for a terminal. Machine output keeps the source text verbatim — an agent reads markdown perfectly well, and reflowing it would change bytes a caller may be diffing.
- The block stays marked as someone else’s. Rendering makes the text readable; it must not make it look like the tool talking. Every line keeps a dim margin bar, so where the quoted block starts and ends is never a matter of interpretation (ADR 1).
Functions§
- image_
reference , when that is the whole line.- image_
references - Every whole-line image reference in
body, in the order they appear. - quoted
- Render
bodyand mark every line as quoted text. - render
- Render
bodyas markdown, wrapped towidth.