added support for multiple markdownElements