this should fix #17, as all leading new lines were replaced with a single space, which in turn was rendered before the # of a headline