The article doesn't mention a key aspect of literate programming: publishing a code chunk at a different point in the document than where it is executed. This is possible in Quarto and should probably be added to that article for completeness. An answer on [stack overflow](https://stackoverflow.com/questions/76278117/how-to-achieve-...) explains how to do so.
echo "Please explain this code: $(cat some_class.py)" | mark
needs a dash at the end to work correctly. Also, it doesn't output pandoc-flavored markdown (blank lines before headings and code chunks) unless I specifically ask it to, as in:
echo "Please explain this code, using pandoc-flavored markdown, leaving a blank line before headings and code chunks: $(cat some_class.py)" | mark -