added support for markdown and stories