Finding the end of a paragraph should be done aware of code spans

Issue #1