Literate to generate markdown programmatically

I don’t quite understand what you are trying to do. Can you post the output you are looking for?