mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-14 14:17:37 +08:00
mark.Run and ProcessFile were writing directly to os.Stdout via fmt.Println, which is a surprising side-effect for library callers. Add Config.Output io.Writer for callers to provide their own sink. When nil the helper falls back to io.Discard, so library embedders that do not set Output receive no implicit stdout writes. The CLI layer sets Output: os.Stdout to preserve existing behaviour. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>