Fixes reading from InputStream

InputStream is being read until the end now.
Fixes Markdown