Markdown reader:  More efficient version of scanForPipe.