Fix markdown templating