Skip to main content

Module markdown

Module markdown 

Source
Expand description

Markdown renderers.

Two entry points:

§render output sections (always in this order)

  1. # AgentSec scan — <RFC 3339 UTC> header + total path count.
  2. ## Inventory table with one row per crate::scan::inventory::PathEntry.
  3. ## Diff vs previous snapshot_no previous snapshot — this is the baseline._ on first run, _no changes._ when the diff is empty, otherwise three subsections (### Added, ### Modified, ### Removed).
  4. Footer line with the absolute snapshot path.

Pure functions: no I/O, no allocation beyond the output string.

Functions§

diff_summary_line
Short one-line diff summary for hook stderr output.
render
Render outcome as a Markdown report (see module docs §render output sections for the schema).
render_blacklist
Render BlackList classify verdicts as Markdown.
render_diff
Render a standalone diff report as Markdown.
render_doctor
Render a DoctorReport as Markdown.
render_info
Render an InfoReport as Markdown.
render_recent
Render a RecentActivityReport as Markdown.
render_status
Render a StatusReport as Markdown.