Creating markdown reports within a function

Hi,

The answer to this other post of mine is probably a good start for addressing this issue.