First working version that generates markdown