I'm looking for a sed
command that replace a part of the [target.md] file
identified by the <!-- start:block -->
and <!-- end:block -->
markers.
This part of the file has to be replaced either with [replaceA.md] or [replaceB.md], but the marker have to be there at the end, so we can start the process again.
You can clone this gist to get the files: