Add support for Markdown.toElement