Adds metadata logic to Markdown class