Port of toMarkdown library for meteor