pub fn render(doc: &Document, options: &RenderOptions) -> StringExpand description
Render any Toolpath Document variant to a Markdown string.
ยงExamples
use toolpath::v1::{Document, Step};
use toolpath_md::{render, RenderOptions};
let step = Step::new("s1", "human:alex", "2026-01-29T10:00:00Z")
.with_raw_change("src/main.rs", "@@ -1 +1 @@\n-old\n+new")
.with_intent("Fix greeting");
let doc = Document::Step(step);
let md = render(&doc, &RenderOptions::default());
assert!(md.contains("# s1"));
assert!(md.contains("human:alex"));