marqdo
No .mq.md files found in this path.
Opening {}…
input".into()
};
format!(
r#""#,
path = escape(rel),
hint = hint,
rows = rows,
placeholder = escape(&placeholder),
stdin = escape(&vm.preset_stdin),
)
}
LinkMode::Static { .. } => {
if vm.preset_stdin.is_empty() {
String::new()
} else {
format!(
r#"Demo stdin (static export cannot re-run interactively); prompts: {prompts}
{stdin}"#,
prompts = escape(&vm.input_prompts.join(" · ")),
stdin = escape(&vm.preset_stdin),
)
}
}
}
};
let title = Path::new(rel)
.file_name()
.and_then(|s| s.to_str())
.unwrap_or(rel)
.trim_end_matches(".mq.md");
let plots_html = if vm.plots.is_empty() {
String::new()
} else {
let mut s = String::from(r#"Use Run with input or Run — thinking and answer stream here.
{source}
{}"#,
escape(wb)
)
}
(Some(wb), LinkMode::Static { .. }) => {
format!(r#"workbook {}"#, escape(wb))
}
_ => String::new(),
};
let process = plan_process_list(events);
format!(
r#"