Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remark-parse: fix whitespace only lines in paragraphs
In commonmark, paragraphs can be split by blank lines even if those lines contain whitespace. Currently, in remark, paragraphs will be split by blank lines only if those lines contain fewer than four characters worth of whitespace, because the code to detect following indented content checks for an indentation but doesn't actually check for content. This commit fixes this behaviour by making sure that there is content following the indentation before absorbing the next paragraph. Closes GH-348. Reviewed-by: Christian Murphy <Christian.Murphy.42@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
- Loading branch information