Markdown and date helper functions for templates