getMarkdownStream moved into separate module