Add watch-mode support for users writing to a file with mdp -outfile file.html file.md. Currently --watch and -outfile are mutually exclusive. The enhancement would re-render the output file on every save so external tools (static-site generators, CI watchers, etc.) can pick up the change.
This would also enable use cases like piping mdp into a Hugo/Vite live-reload pipeline.
Tracked from the live-reload implementation PR — see linked issue/PR for context.
Add watch-mode support for users writing to a file with
mdp -outfile file.html file.md. Currently--watchand-outfileare mutually exclusive. The enhancement would re-render the output file on every save so external tools (static-site generators, CI watchers, etc.) can pick up the change.This would also enable use cases like piping mdp into a Hugo/Vite live-reload pipeline.
Tracked from the live-reload implementation PR — see linked issue/PR for context.