This ports the functionality of the Literate Markdown Tangler written in Go by Dave MacFarlane to a Pandoc Lua filter. However, the syntax differs from the Go lmt to comply with Pandoc's markdown.
quarto add stefanocoretta/lmt
This will install the extension under the _extensions
subdirectory.
If you're using version control, you will want to check in this directory.
Here is the source code for a minimal example: example.qmd.