markdown truncation for index, better-asssert, separation of renderer
and previewRenderer, changes to the caching. fixes #7.