Is that an executable doctest?
The extension is experimental, and I'm not sure how many guarantees are given wrt stability (probably best effort).
Now the extension is in the process of getting moved into core (where the behaviour, protocol, file formats will be frozen).
The text looked to me like one could extract all the commands, run them and check their output against the embedded reference output automatically. I don't know, it had such a rigid structure.
On a second look, the output contains timestamps, so what looks like shell output is probably only shell output the author has copied once into their text.