Improved markdown reader