Replace repeated markdownBody functions with common parent